File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ inline object Foo // error: modifier(s) `inline' incompatible with type definition
2
+ inline class Bar // error: modifier(s) `inline' incompatible with type definition
3
+ inline abstract class Baz // error: modifier(s) `inline' incompatible with type definition
4
+ inline trait Qux // error: modifier(s) `inline' incompatible with type definition
5
+
6
+ object Quux {
7
+ inline type T // error: modifier(s) `inline' incompatible with type definition
8
+ inline var x : Int = 42 // error: modifier(s) `inline' incompatible with var definition
9
+ inline lazy val y : Int = 43 // error: modifier(s) `inline' incompatible with lazy val definition
10
+ }
Original file line number Diff line number Diff line change
1
+ object Foo {
2
+ lazy var x : Int = 42 // error: modifier(s) `lazy' incompatible with var definition
3
+ lazy def y : Int = 42 // error: modifier(s) `lazy' incompatible with def definition
4
+ }
5
+
6
+ lazy class Bar // error: modifier(s) `lazy' incompatible with type definition
7
+ lazy abstract class Baz // error: modifier(s) `lazy abstract' incompatible with type definition
8
+ lazy trait Qux // error: modifier(s) `lazy' not allowed for trait
9
+
10
+ object Quux {
11
+ lazy type T // error: modifier(s) `lazy' incompatible with type definition
12
+ }
You can’t perform that action at this time.
0 commit comments