K2 (minor): fix modality in tests from d8a20f19
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
FILE: test.kt
|
FILE: test.kt
|
||||||
public final class Base : R|kotlin/Any| {
|
public open class Base : R|kotlin/Any| {
|
||||||
public constructor(x: R|kotlin/Any|): R|Base| {
|
public constructor(x: R|kotlin/Any|): R|Base| {
|
||||||
super<R|kotlin/Any|>()
|
super<R|kotlin/Any|>()
|
||||||
}
|
}
|
||||||
|
|||||||
compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/genericGetterForJavaOverriddenProperty.kt
Vendored
+1
-1
@@ -8,7 +8,7 @@ public class Some extends Base {
|
|||||||
|
|
||||||
// FILE: test.kt
|
// FILE: test.kt
|
||||||
|
|
||||||
class Base(val x: Any) {
|
open class Base(val x: Any) {
|
||||||
fun <T> getFoo(): T = x <!UNCHECKED_CAST!>as T<!>
|
fun <T> getFoo(): T = x <!UNCHECKED_CAST!>as T<!>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
FILE: test.kt
|
FILE: test.kt
|
||||||
public final class Base : R|kotlin/Any| {
|
public open class Base : R|kotlin/Any| {
|
||||||
public constructor(foo: R|kotlin/Any|): R|Base| {
|
public constructor(foo: R|kotlin/Any|): R|Base| {
|
||||||
super<R|kotlin/Any|>()
|
super<R|kotlin/Any|>()
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ public class Some extends Base {
|
|||||||
|
|
||||||
// FILE: test.kt
|
// FILE: test.kt
|
||||||
|
|
||||||
class Base(internal val foo: Any) {
|
open class Base(internal val foo: Any) {
|
||||||
fun <T> getFoo(): T = foo <!UNCHECKED_CAST!>as T<!>
|
fun <T> getFoo(): T = foo <!UNCHECKED_CAST!>as T<!>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user