We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df38e1c commit 6ad2ac1Copy full SHA for 6ad2ac1
tests/neg/inlinevals.scala
@@ -7,9 +7,9 @@ object Test {
7
inline val N = 10
8
def X = 20
9
10
- inline inline val twice = 30 // error: repeated modifier // error: not found: inline
+ inline inline val twice = 30 // error: `match' expected // error: not found: inline
11
12
- class C(inline x: Int, private inline val y: Int) { // error // error
+ class C(inline x: Int, private inline val y: Int) { // error: `{` expected // error // error
13
inline val foo: Int // error: abstract member may not be inline
14
inline def bar: Int // error: abstract member may not be inline
15
}
@@ -33,3 +33,4 @@ object Test {
33
inline def byname(inline f: => String): Int = ??? // ok
34
35
36
+// error: `}` expected
0 commit comments