Exposed visibility deprecation warnings made errors + relevant test fixes

This commit is contained in:
Mikhail Glukhikh
2015-11-17 18:59:04 +03:00
parent e8e5d700d2
commit 4e44466cf9
63 changed files with 93 additions and 87 deletions
@@ -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")
@@ -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")
}
@@ -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")
}
@@ -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")
}
@@ -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")
}
@@ -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")
}
@@ -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,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")
}
@@ -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")
}
@@ -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")
}
@@ -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")
}