File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -1722,8 +1722,6 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
17221722 EmptyTree
17231723 }
17241724 case tp =>
1725- if ! tp.isErroneous then
1726- throw new java.lang.Error (i " internal error: closing over non-method $tp, pos = ${tree.span}" )
17271725 TypeTree (defn.AnyType )
17281726 }
17291727 else typed(tree.tpt)
Original file line number Diff line number Diff line change 1+ package pakiet
2+
3+ def toppingPrice (size : Int ): Double = ???
4+
5+ def crustPrice (crustType : Double ): Double = ???
6+
7+ export toppingPrice .apply , crustPrice .unlift // error // error // error
Original file line number Diff line number Diff line change 1+ package pakiet
2+
3+ def toppingPrice (size : Int ): Double = ???
4+
5+ def crustPrice (crustType : Double ): Double = ???
6+
7+ export toppingPrice , crustPrice // error // error
8+ val i = 1 // error
You can’t perform that action at this time.
0 commit comments