File tree Expand file tree Collapse file tree 5 files changed +22
-0
lines changed Expand file tree Collapse file tree 5 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ scalaVersion := sys.props(" plugin.scalaVersion" )
Original file line number Diff line number Diff line change 1+ object Foo :
2+ opaque type BlaBla [+ T , D ] = Int
3+ extension [T , D ](token : BlaBla [T , D ]) def data : D = ???
4+
5+ // To cause the crash, after initial clean compilation
6+ // replace `???` with `value.data` to cause the compiler crash
7+ def foo [W <: Int ](value : Bar .BlaBla [W ]): Unit = value.data
Original file line number Diff line number Diff line change 1+ object Bar :
2+ type Fuzzy [W <: Int ] = Int
3+ opaque type BlaBla [W <: Int ] <: Foo .BlaBla [Fuzzy [W ], Int ] =
4+ Foo .BlaBla [Fuzzy [W ], Int ]
Original file line number Diff line number Diff line change 1+ object Foo :
2+ opaque type BlaBla [+ T , D ] = Int
3+ extension [T , D ](token : BlaBla [T , D ]) def data : D = ???
4+
5+ // To cause the crash, after initial clean compilation
6+ // replace `???` with `value.data` to cause the compiler crash
7+ def foo [W <: Int ](value : Bar .BlaBla [W ]): Unit = ??? // value.data
Original file line number Diff line number Diff line change 1+ > compile
2+ $ copy-file changes/Foo.scala src/main/scala/Foo.scala
3+ > compile
You can’t perform that action at this time.
0 commit comments