Exposed visibility deprecation warnings made errors + relevant test fixes
This commit is contained in:
+1
-1
@@ -3,4 +3,4 @@
|
||||
// ACTION: Convert to block body
|
||||
// ERROR: Unresolved reference: Foo
|
||||
|
||||
fun test(): A = <caret>Foo(2, "2")
|
||||
internal fun test(): A = <caret>Foo(2, "2")
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Unresolved reference: Foo
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = B.Foo<Int, String>(2, "2")
|
||||
class A<T> internal constructor(val b: B<T>) {
|
||||
internal fun test() = B.Foo<Int, String>(2, "2")
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Unresolved reference: Foo
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = B.<caret>Foo<Int, String>(2, "2")
|
||||
class A<T> internal constructor(val b: B<T>) {
|
||||
internal fun test() = B.<caret>Foo<Int, String>(2, "2")
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Unresolved reference: Foo
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = b.Foo<Int, String>(2, "2")
|
||||
class A<T> internal constructor(val b: B<T>) {
|
||||
internal fun test() = b.Foo<Int, String>(2, "2")
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Unresolved reference: Foo
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = b.<caret>Foo<Int, String>(2, "2")
|
||||
class A<T> internal constructor(val b: B<T>) {
|
||||
internal fun test() = b.<caret>Foo<Int, String>(2, "2")
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Unresolved reference: Foo
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = b.Foo<String>(2, "2")
|
||||
class A<T> internal constructor(val b: B<T>) {
|
||||
internal fun test() = b.Foo<String>(2, "2")
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Unresolved reference: Foo
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = b.<caret>Foo<String>(2, "2")
|
||||
class A<T> internal constructor(val b: B<T>) {
|
||||
internal fun test() = b.<caret>Foo<String>(2, "2")
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Unresolved reference: Foo
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = b.Foo<T, Int, String>(2, "2")
|
||||
class A<T> internal constructor(val b: B<T>) {
|
||||
internal fun test() = b.Foo<T, Int, String>(2, "2")
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Unresolved reference: Foo
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = b.<caret>Foo<T, Int, String>(2, "2")
|
||||
class A<T> internal constructor(val b: B<T>) {
|
||||
internal fun test() = b.<caret>Foo<T, Int, String>(2, "2")
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Unresolved reference: Foo
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = B.Foo<String>(2, "2")
|
||||
class A<T> internal constructor(val b: B<T>) {
|
||||
internal fun test() = B.Foo<String>(2, "2")
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Unresolved reference: Foo
|
||||
|
||||
class A<T>(val b: B<T>) {
|
||||
fun test() = B.<caret>Foo<String>(2, "2")
|
||||
class A<T> internal constructor(val b: B<T>) {
|
||||
internal fun test() = B.<caret>Foo<String>(2, "2")
|
||||
}
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
// ACTION: Convert to block body
|
||||
// ACTION: Create member property 'A'
|
||||
// ERROR: Unresolved reference: A
|
||||
fun foo(): J = J.<caret>A
|
||||
internal fun foo(): J = J.<caret>A
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
// ACTION: Convert to block body
|
||||
// ACTION: Create member property 'A'
|
||||
// ERROR: Unresolved reference: A
|
||||
fun foo(): X = E.<caret>A
|
||||
internal fun foo(): X = E.<caret>A
|
||||
|
||||
Reference in New Issue
Block a user