Open soronpo opened 6 days ago
Note: this only started crashing since 3.5.0, although it has not been compiling for earlier versions.
scala-cli compile repro.scala -S 3.4.3
gives
[error] ./repro.scala:4:1
[error] '=>' expected, but 'end of statement' found
[error] def selectDynamic(fieldName: String)(using Ctx): Any = ???
[error] ^^^
[error] ./repro.scala:7:11
[error] value bar is not a member of Foo
[error] val bar = f.bar
[error] ^^^^^
So technically, the crash could be considered a regression.
Last good stable version: 3.4.3 First bad stable version: 3.5.0
This is not a real regression because named tuple syntax did not exist until 3.5 (as experimental). So no bisect is needed. The implementation needs to be fixed to account for the implicit arguments in selectDynamic.
This is not a real regression because named tuple syntax did not exist until 3.5 (as experimental).
I know, but a compiler crash was still introduced. Grey zone, I know.
Compiler version
v3.6.2-RC1
Minimized code
Output (click arrow to expand)