File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ class tests extends CompilerTest {
110
110
@ Test def neg_i50_volatile = compileFile(negDir, " i50-volatile" , xerrors = 6 )
111
111
@ Test def neg_t0273_doubledefs = compileFile(negDir, " t0273" , xerrors = 1 )
112
112
@ Test def neg_zoo = compileFile(negDir, " zoo" , xerrors = 12 )
113
+ @ Test def neg_sam = compileFile(negDir, " sammy_poly" , xerrors = 1 )
113
114
// TODO: this test file doesn't exist (anymore?), remove?
114
115
// @Test def neg_t1192_legalPrefix = compileFile(negDir, "t1192", xerrors = 1)
115
116
Original file line number Diff line number Diff line change 2
2
3
3
trait F1 [T , U ] { def apply (x : T ): U }
4
4
class T {
5
+ import T ._
5
6
// NOTE: the f(x) desugaring for now assumes the single abstract method is called 'apply'
6
7
def app1 [T , U ](x : T )(f : F1 [T , U ]): U = f(x)
7
8
def app2 [T , U ](x : T )(f : F2 [T , U ]): U = f(x)
You can’t perform that action at this time.
0 commit comments