Skip to content

Conversation

@odersky
Copy link
Contributor

@odersky odersky commented Sep 5, 2017

When bootstrapping with -Yno-inline, Tokens failied to initialize
because the length maxToken in tokenString was still 0. Changing
a val to a def fixes that. This is a nice demonstration that the
initialization rules are non-intuitive - we get bitten by them ourselves!

When bootstrapping with -Yno-inline, Tokens failied to initialize
because the length `maxToken` in `tokenString` was still 0. Changing
a `val` to a `def` fixes that. This is a nice demonstration that the
initialization rules are non-intuitive - we get bitten by them ourselves!
Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, this explains the failure in #3063

@smarter smarter merged commit 1af3894 into scala:master Sep 5, 2017
@allanrenucci allanrenucci deleted the fix-noinline-bootstrap branch December 14, 2017 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants