From 25efd6684f239b005077afb500a8154e3184ed3c Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Wed, 24 Sep 2014 15:02:35 +0400 Subject: [PATCH] Missing test data generated --- .../diagnostics/tests/generics/recursive.txt | 23 +++++ .../tests/j+k/GenericsInSupertypes.txt | 95 +++++++++++++++++++ .../tests/j+k/InheritedGenericFunction.txt | 9 ++ .../commonSupertype/collectionOrNull.txt | 4 + .../commonSupertype/inferenceWithBound.txt | 5 + .../commonSupertype/recursiveGeneric.txt | 3 + .../commonSupertype/stringOrNull.txt | 4 + .../tests/platformTypes/dereference.txt | 3 + .../diagnostics/tests/platformTypes/elvis.txt | 3 + .../tests/platformTypes/getParentOfType.txt | 4 + .../tests/platformTypes/inference.txt | 4 + .../platformTypes/intVsIntegerAmbiguity.txt | 11 +++ .../platformTypes/methodCall/entrySet.txt | 3 + .../tests/platformTypes/methodCall/int.txt | 3 + .../platformTypes/methodCall/intArray.txt | 3 + .../methodCall/javaCollectionToKotlin.txt | 4 + .../platformTypes/methodCall/javaToJava.txt | 3 + .../platformTypes/methodCall/javaToKotlin.txt | 4 + .../methodCall/kotlinCollectionToJava.txt | 3 + .../tests/platformTypes/methodCall/list.txt | 3 + .../platformTypes/methodCall/objectArray.txt | 3 + .../tests/platformTypes/methodCall/sam.txt | 3 + .../platformTypes/methodCall/singleton.txt | 9 ++ .../tests/platformTypes/methodCall/string.txt | 3 + .../platformTypes/methodCall/visitor.txt | 3 + .../tests/platformTypes/override.txt | 3 + .../tests/platformTypes/safeCall.txt | 11 +++ 27 files changed, 229 insertions(+) create mode 100644 compiler/testData/diagnostics/tests/generics/recursive.txt create mode 100644 compiler/testData/diagnostics/tests/j+k/GenericsInSupertypes.txt create mode 100644 compiler/testData/diagnostics/tests/j+k/InheritedGenericFunction.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/commonSupertype/collectionOrNull.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/commonSupertype/inferenceWithBound.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/commonSupertype/recursiveGeneric.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/commonSupertype/stringOrNull.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/dereference.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/elvis.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/getParentOfType.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/inference.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/intVsIntegerAmbiguity.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/methodCall/entrySet.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/methodCall/int.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/methodCall/intArray.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/methodCall/javaCollectionToKotlin.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/methodCall/javaToJava.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/methodCall/javaToKotlin.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/methodCall/kotlinCollectionToJava.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/methodCall/list.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/methodCall/objectArray.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/methodCall/sam.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/methodCall/string.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/methodCall/visitor.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/override.txt create mode 100644 compiler/testData/diagnostics/tests/platformTypes/safeCall.txt diff --git a/compiler/testData/diagnostics/tests/generics/recursive.txt b/compiler/testData/diagnostics/tests/generics/recursive.txt new file mode 100644 index 00000000000..37f5bfd4d84 --- /dev/null +++ b/compiler/testData/diagnostics/tests/generics/recursive.txt @@ -0,0 +1,23 @@ +package + +internal fun test(/*0*/ a: A, /*1*/ b: B, /*2*/ c: kotlin.Boolean): kotlin.Unit + +internal final class A : Rec { + public constructor A() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +internal final class B : Rec { + public constructor B() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +internal trait Rec { + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/j+k/GenericsInSupertypes.txt b/compiler/testData/diagnostics/tests/j+k/GenericsInSupertypes.txt new file mode 100644 index 00000000000..fdd6807e166 --- /dev/null +++ b/compiler/testData/diagnostics/tests/j+k/GenericsInSupertypes.txt @@ -0,0 +1,95 @@ +package + +internal abstract class AL : java.util.ArrayList { + public constructor AL() + invisible_fake final override /*1*/ /*fake_override*/ var elementData: kotlin.Array<(out) kotlin.Any!>! + protected/*protected and package*/ final override /*1*/ /*fake_override*/ var modCount: kotlin.Int + invisible_fake final override /*1*/ /*fake_override*/ var size: kotlin.Int + public open override /*1*/ /*fake_override*/ fun add(/*0*/ index: kotlin.Int, /*1*/ element: p.P!): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun add(/*0*/ e: p.P!): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun addAll(/*0*/ c: (kotlin.MutableCollection..kotlin.Collection?)): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun addAll(/*0*/ index: kotlin.Int, /*1*/ c: (kotlin.MutableCollection..kotlin.Collection?)): kotlin.Boolean + invisible_fake open override /*1*/ /*fake_override*/ fun batchRemove(/*0*/ p0: (kotlin.MutableCollection..kotlin.Collection?), /*1*/ p1: kotlin.Boolean): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun clear(): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun clone(): kotlin.Any! + public open override /*1*/ /*fake_override*/ fun contains(/*0*/ o: kotlin.Any!): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun containsAll(/*0*/ c: kotlin.Collection): kotlin.Boolean + invisible_fake open override /*1*/ /*fake_override*/ fun elementData(/*0*/ p0: kotlin.Int): p.P! + public open override /*1*/ /*fake_override*/ fun ensureCapacity(/*0*/ p0: kotlin.Int): kotlin.Unit + invisible_fake open override /*1*/ /*fake_override*/ fun ensureCapacityInternal(/*0*/ p0: kotlin.Int): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + invisible_fake open override /*1*/ /*fake_override*/ fun fastRemove(/*0*/ p0: kotlin.Int): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): p.P! + invisible_fake open override /*1*/ /*fake_override*/ fun grow(/*0*/ p0: kotlin.Int): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun indexOf(/*0*/ o: kotlin.Any!): kotlin.Int + public open override /*1*/ /*fake_override*/ fun isEmpty(): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun iterator(): kotlin.(Mutable)Iterator! + public open override /*1*/ /*fake_override*/ fun lastIndexOf(/*0*/ o: kotlin.Any!): kotlin.Int + public open override /*1*/ /*fake_override*/ fun listIterator(): kotlin.(Mutable)ListIterator! + public open override /*1*/ /*fake_override*/ fun listIterator(/*0*/ index: kotlin.Int): kotlin.(Mutable)ListIterator! + invisible_fake open override /*1*/ /*fake_override*/ fun outOfBoundsMsg(/*0*/ p0: kotlin.Int): kotlin.String! + invisible_fake open override /*1*/ /*fake_override*/ fun rangeCheck(/*0*/ p0: kotlin.Int): kotlin.Unit + invisible_fake open override /*1*/ /*fake_override*/ fun rangeCheckForAdd(/*0*/ p0: kotlin.Int): kotlin.Unit + invisible_fake open override /*1*/ /*fake_override*/ fun readObject(/*0*/ p0: java.io.ObjectInputStream!): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun remove(/*0*/ o: kotlin.Any!): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun remove(/*0*/ index: kotlin.Int): p.P! + public open override /*1*/ /*fake_override*/ fun removeAll(/*0*/ c: (kotlin.MutableCollection..kotlin.Collection?)): kotlin.Boolean + protected/*protected and package*/ open override /*1*/ /*fake_override*/ fun removeRange(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun retainAll(/*0*/ c: (kotlin.MutableCollection..kotlin.Collection?)): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun set(/*0*/ index: kotlin.Int, /*1*/ element: p.P!): p.P! + public open override /*1*/ /*fake_override*/ fun size(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun subList(/*0*/ fromIndex: kotlin.Int, /*1*/ toIndex: kotlin.Int): kotlin.(Mutable)List! + public open override /*1*/ /*fake_override*/ fun toArray(): kotlin.Array<(out) kotlin.Any!>! + public open override /*1*/ /*fake_override*/ fun toArray(/*0*/ a: kotlin.Array<(out) T!>!): kotlin.Array<(out) T!>! + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String + public open override /*1*/ /*fake_override*/ fun trimToSize(): kotlin.Unit + invisible_fake open override /*1*/ /*fake_override*/ fun writeObject(/*0*/ p0: java.io.ObjectOutputStream!): kotlin.Unit +} + +internal abstract class K : p.C { + public constructor K() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun foo(/*0*/ p: p.A!): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +package p { + + public trait A { + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + internal abstract fun foo(/*0*/ p: p.A): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String + } + + public open class B : p.A { + public constructor B() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public/*package*/ open override /*1*/ fun foo(/*0*/ p: p.A!): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String + } + + public open class C : p.B, p.A { + public constructor C() + public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*2*/ /*fake_override*/ fun foo(/*0*/ p: p.A!): kotlin.Unit + public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String + } + + public trait G { + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String + } + + public open class P { + public constructor P() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String + } +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/j+k/InheritedGenericFunction.txt b/compiler/testData/diagnostics/tests/j+k/InheritedGenericFunction.txt new file mode 100644 index 00000000000..6898cb430cc --- /dev/null +++ b/compiler/testData/diagnostics/tests/j+k/InheritedGenericFunction.txt @@ -0,0 +1,9 @@ +package + +internal abstract class K : p.C { + public constructor K() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun foo(/*0*/ p: TB!): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/collectionOrNull.txt b/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/collectionOrNull.txt new file mode 100644 index 00000000000..5e99e85c927 --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/collectionOrNull.txt @@ -0,0 +1,4 @@ +package + +internal fun test(/*0*/ b: kotlin.Boolean): kotlin.Unit +internal fun T.foo(): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/inferenceWithBound.txt b/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/inferenceWithBound.txt new file mode 100644 index 00000000000..abf247338f0 --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/inferenceWithBound.txt @@ -0,0 +1,5 @@ +package + +internal fun listOf(/*0*/ t: T): kotlin.List +internal fun test(): kotlin.Unit +internal fun kotlin.Collection.foo(): T \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/recursiveGeneric.txt b/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/recursiveGeneric.txt new file mode 100644 index 00000000000..e63d689cfca --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/recursiveGeneric.txt @@ -0,0 +1,3 @@ +package + +internal fun test(/*0*/ a: p.A, /*1*/ b: p.B, /*2*/ c: kotlin.Boolean): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/stringOrNull.txt b/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/stringOrNull.txt new file mode 100644 index 00000000000..5e99e85c927 --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/commonSupertype/stringOrNull.txt @@ -0,0 +1,4 @@ +package + +internal fun test(/*0*/ b: kotlin.Boolean): kotlin.Unit +internal fun T.foo(): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/dereference.txt b/compiler/testData/diagnostics/tests/platformTypes/dereference.txt new file mode 100644 index 00000000000..247c75b71ad --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/dereference.txt @@ -0,0 +1,3 @@ +package + +internal fun test(/*0*/ j: p.J): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/elvis.txt b/compiler/testData/diagnostics/tests/platformTypes/elvis.txt new file mode 100644 index 00000000000..247c75b71ad --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/elvis.txt @@ -0,0 +1,3 @@ +package + +internal fun test(/*0*/ j: p.J): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/getParentOfType.txt b/compiler/testData/diagnostics/tests/platformTypes/getParentOfType.txt new file mode 100644 index 00000000000..025f2ceebc0 --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/getParentOfType.txt @@ -0,0 +1,4 @@ +package + +internal fun javaClass(): java.lang.Class +internal fun test(/*0*/ e: p.JetExpression): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/inference.txt b/compiler/testData/diagnostics/tests/platformTypes/inference.txt new file mode 100644 index 00000000000..fc0da420712 --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/inference.txt @@ -0,0 +1,4 @@ +package + +internal fun > convert(/*0*/ src: foo.HS, /*1*/ dest: C): C +internal fun test(/*0*/ l: foo.HS): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/intVsIntegerAmbiguity.txt b/compiler/testData/diagnostics/tests/platformTypes/intVsIntegerAmbiguity.txt new file mode 100644 index 00000000000..9f19ddc8991 --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/intVsIntegerAmbiguity.txt @@ -0,0 +1,11 @@ +package + +internal fun foo(/*0*/ i: kotlin.Int?): C +internal fun test(/*0*/ i: kotlin.Int, /*1*/ ni: kotlin.Int?): kotlin.Unit + +internal final class C { + public constructor C() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/entrySet.txt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/entrySet.txt new file mode 100644 index 00000000000..a60e97c2409 --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/entrySet.txt @@ -0,0 +1,3 @@ +package + +internal fun test(): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/int.txt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/int.txt new file mode 100644 index 00000000000..a60e97c2409 --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/int.txt @@ -0,0 +1,3 @@ +package + +internal fun test(): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/intArray.txt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/intArray.txt new file mode 100644 index 00000000000..bdaac0751a3 --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/intArray.txt @@ -0,0 +1,3 @@ +package + +internal fun test(/*0*/ ia: kotlin.IntArray): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/javaCollectionToKotlin.txt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/javaCollectionToKotlin.txt new file mode 100644 index 00000000000..555bcf94b4d --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/javaCollectionToKotlin.txt @@ -0,0 +1,4 @@ +package + +internal fun takeJ(/*0*/ map: kotlin.Map): kotlin.Unit +internal fun test(): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/javaToJava.txt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/javaToJava.txt new file mode 100644 index 00000000000..247c75b71ad --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/javaToJava.txt @@ -0,0 +1,3 @@ +package + +internal fun test(/*0*/ j: p.J): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/javaToKotlin.txt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/javaToKotlin.txt new file mode 100644 index 00000000000..d2105c5850c --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/javaToKotlin.txt @@ -0,0 +1,4 @@ +package + +internal fun takeJ(/*0*/ j: p.J): kotlin.Unit +internal fun test(): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/kotlinCollectionToJava.txt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/kotlinCollectionToJava.txt new file mode 100644 index 00000000000..bcf4c04a00e --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/kotlinCollectionToJava.txt @@ -0,0 +1,3 @@ +package + +internal fun test(/*0*/ map: kotlin.Map): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/list.txt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/list.txt new file mode 100644 index 00000000000..8ce9f308cef --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/list.txt @@ -0,0 +1,3 @@ +package + +internal fun test(/*0*/ ls: kotlin.List, /*1*/ mls: kotlin.MutableList, /*2*/ lsn: kotlin.List, /*3*/ mlsn: kotlin.MutableList?): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/objectArray.txt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/objectArray.txt new file mode 100644 index 00000000000..e89399f0cb2 --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/objectArray.txt @@ -0,0 +1,3 @@ +package + +internal fun test(/*0*/ aa: kotlin.Array, /*1*/ sa: kotlin.Array, /*2*/ san: kotlin.Array): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/sam.txt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/sam.txt new file mode 100644 index 00000000000..a60e97c2409 --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/sam.txt @@ -0,0 +1,3 @@ +package + +internal fun test(): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.txt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.txt new file mode 100644 index 00000000000..4dad1de8fbf --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/singleton.txt @@ -0,0 +1,9 @@ +package + +internal fun test(): kotlin.Unit + +internal trait Foo { + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/string.txt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/string.txt new file mode 100644 index 00000000000..a60e97c2409 --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/string.txt @@ -0,0 +1,3 @@ +package + +internal fun test(): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/methodCall/visitor.txt b/compiler/testData/diagnostics/tests/platformTypes/methodCall/visitor.txt new file mode 100644 index 00000000000..e3c7051a688 --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/methodCall/visitor.txt @@ -0,0 +1,3 @@ +package + +internal fun test(/*0*/ v: p.Visitor, /*1*/ e: p.Element): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/override.txt b/compiler/testData/diagnostics/tests/platformTypes/override.txt new file mode 100644 index 00000000000..a60e97c2409 --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/override.txt @@ -0,0 +1,3 @@ +package + +internal fun test(): kotlin.Unit \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/platformTypes/safeCall.txt b/compiler/testData/diagnostics/tests/platformTypes/safeCall.txt new file mode 100644 index 00000000000..307020ae0ad --- /dev/null +++ b/compiler/testData/diagnostics/tests/platformTypes/safeCall.txt @@ -0,0 +1,11 @@ +package + +internal fun test(/*0*/ j: p.J): kotlin.Unit +internal fun T.checkType(/*0*/ f: (_) -> kotlin.Unit): (_) -> kotlin.Unit + +internal final class _ { + public constructor _() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} \ No newline at end of file