LV20: fix JPS testdata where the error reporting slightly changed

This commit is contained in:
Ilya Chernikov
2023-08-02 15:57:54 +02:00
committed by Space Team
parent 0883b4468b
commit 60603de042
8 changed files with 31 additions and 31 deletions
@@ -1,7 +1,7 @@
'internal open val member: Int defined in test.ClassBB1' has no access to 'internal abstract val member: Int defined in test.ClassB1', so it cannot override it at line 14, column 14
'public' subclass exposes its 'internal' supertype InternalClass1 at line 8, column 36
'public' subclass exposes its 'internal' supertype InternalClass2 at line 18, column 36
'public' subclass exposes its 'internal' supertype InternalClass2 at line 19, column 15
Subclass 'public' exposes its 'internal' supertype 'InternalClass1'. at line 8, column 36
Subclass 'public' exposes its 'internal' supertype 'InternalClass2'. at line 18, column 36
Subclass 'public' exposes its 'internal' supertype 'InternalClass2'. at line 19, column 15
Cannot access 'InternalClass1': it is internal in 'test' at line 5, column 13
Cannot access 'InternalClass1': it is internal in 'test' at line 8, column 36
Cannot access 'InternalClass2': it is internal in 'test' at line 19, column 15
@@ -1,4 +1,4 @@
Cannot access 'funA': it is internal in 'test' at line 4, column 5
Cannot access 'funB': it is internal in 'test' at line 4, column 5
Cannot access 'fun funA(): Unit': it is internal in file. at line 4, column 5
Cannot access 'fun funB(): Unit': it is internal in file. at line 4, column 5
Cannot access 'testFunA': it is internal in 'test' at line 5, column 5
Cannot access 'testFunB': it is internal in 'test' at line 5, column 5
@@ -1,10 +1,10 @@
'internal open override val test/ClassBB1.member: kotlin/Int = Int(10)
'internal open override val test/ClassBB1.member: kotlin/Int
internal get(): kotlin/Int' has no access to 'internal abstract val test/ClassB1.member: kotlin/Int
internal get(): kotlin/Int', so it cannot override it at line 14, column 14
Cannot access '@Target(...) @Retention(...) annotation class InternalClassAnnotation : Annotation': it is internal in file at line 10, column 2
Cannot access '@Target(...) @Retention(...) annotation class InternalTestAnnotation : Annotation': it is internal in file at line 1, column 7
Cannot access 'class InternalClass1 : Any': it is internal in file at line 5, column 13
Cannot access 'class InternalClass1 : Any': it is internal in file at line 8, column 36
Cannot access 'val member: Int': it is internal in 'test/ClassA1' at line 27, column 25
public subclass exposes its internal supertype 'InternalClass1' at line 8, column 36
public subclass exposes its internal supertype 'InternalClass2' at line 18, column 36
internal get(): kotlin/Int', so it cannot override it. at line 14, column 14
Cannot access '@Target(...) @Retention(...) annotation class InternalClassAnnotation : Annotation': it is internal in file. at line 10, column 2
Cannot access '@Target(...) @Retention(...) annotation class InternalTestAnnotation : Annotation': it is internal in file. at line 1, column 7
Cannot access 'class InternalClass1 : Any': it is internal in file. at line 5, column 13
Cannot access 'class InternalClass1 : Any': it is internal in file. at line 8, column 36
Cannot access 'val member: Int': it is internal in 'test/ClassA1'. at line 27, column 25
Subclass 'public' exposes its 'internal' supertype 'InternalClass1'. at line 8, column 36
Subclass 'public' exposes its 'internal' supertype 'InternalClass2'. at line 18, column 36
@@ -15,7 +15,7 @@ Exit code: OK
Compiling files:
src/usages.kt
Exit code: COMPILATION_ERROR
Unresolved reference: vala
Unresolved reference: vara
Unresolved reference: foo
Unresolved reference: bar
Unresolved reference 'vala'.
Unresolved reference 'vara'.
Unresolved reference 'foo'.
Unresolved reference 'bar'.
@@ -2,6 +2,6 @@
Compiling files:
src/usages.kt
Exit code: COMPILATION_ERROR
No value passed for parameter 'x'
No value passed for parameter 'x'
No value passed for parameter 'function'
No value passed for parameter 'x'.
No value passed for parameter 'x'.
No value passed for parameter 'function'.
@@ -15,7 +15,7 @@ Exit code: OK
Compiling files:
src/usages.kt
Exit code: COMPILATION_ERROR
Unresolved reference: vala
Unresolved reference: vara
Unresolved reference: foo
Unresolved reference: bar
Unresolved reference 'vala'.
Unresolved reference 'vara'.
Unresolved reference 'foo'.
Unresolved reference 'bar'.
@@ -2,5 +2,5 @@
Compiling files:
src/usages.kt
Exit code: COMPILATION_ERROR
Unresolved reference: IS
Unresolved reference: C.IS
Unresolved reference 'IS'.
Unresolved reference 'IS'.
@@ -3,11 +3,11 @@ Compiling files:
src/KotlinClass.kt
src/usages.kt
Exit code: COMPILATION_ERROR
Unresolved reference: setFoo
Val cannot be reassigned
Unresolved reference 'setFoo'.
'val' cannot be reassigned.
Overload resolution ambiguity between candidates: [var bazBaz: Int, val bazBaz: Int]
Overload resolution ambiguity between candidates: [var bazBaz: Int, val bazBaz: Int]
Unresolved reference: boo
Unresolved reference 'boo'.
Overload resolution ambiguity between candidates: [var bazBaz: Int, val bazBaz: Int]
Overload resolution ambiguity between candidates: [var bazBaz: Int, val bazBaz: Int]
Unresolved reference: boo
Unresolved reference 'boo'.