File tree 2 files changed +19
-3
lines changed 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ class tests extends CompilerTest {
146
146
@ Test def neg_instantiateAbstract = compileFile(negDir, " instantiateAbstract" , xerrors = 8 )
147
147
@ Test def neg_selfInheritance = compileFile(negDir, " selfInheritance" , xerrors = 6 )
148
148
@ Test def neg_selfreq = compileFile(negDir, " selfreq" , xerrors = 4 )
149
- @ Test def neg_singletons = compileFile(negDir, " singletons" , xerrors = 2 )
149
+ @ Test def neg_singletons = compileFile(negDir, " singletons" , xerrors = 4 )
150
150
@ Test def neg_shadowedImplicits = compileFile(negDir, " arrayclone-new" , xerrors = 2 )
151
151
@ Test def neg_traitParamsTyper = compileFile(negDir, " traitParamsTyper" , xerrors = 5 )
152
152
@ Test def neg_traitParamsMixin = compileFile(negDir, " traitParamsMixin" , xerrors = 2 )
Original file line number Diff line number Diff line change @@ -12,8 +12,17 @@ object Test {
12
12
val b : 2 = a
13
13
14
14
def f : 3 = 3
15
- val c = f
15
+ final val c = f
16
16
17
+ val dc : 3.0 = 3.0
18
+ final val dc1 = dc
19
+ val fc : 3.0f = 3.0f
20
+ final val fc1 = fc
21
+
22
+ val t : true = true
23
+
24
+ val str : " " = " "
25
+ final val str2 = str
17
26
}
18
27
/* To do: test that after erasure we have generated code like this:
19
28
*
@@ -34,7 +43,14 @@ package <empty> {
34
43
}
35
44
<accessor> def b(): Int = 2
36
45
def f(): Int = 3
37
- <accessor> def c(): Int = Test.f()
46
+ final <accessor> def c(): Int = Test.f()
47
+ <accessor> def dc(): Double = 3.0
48
+ final <accessor> def dc1(): Double = 3.0
49
+ <accessor> def fc(): Float = 3.0
50
+ final <accessor> def fc1(): Float = 3.0
51
+ <accessor> def t(): Boolean = true
52
+ <accessor> def str(): String = ""
53
+ final <accessor> def str2(): String = ""
38
54
}
39
55
}
40
56
*/
You can’t perform that action at this time.
0 commit comments