Fix compiler tests
This commit is contained in:
+2
-2
@@ -93,7 +93,7 @@ abstract class Tag(val name : String) : Element {
|
||||
}
|
||||
|
||||
abstract class TagWithText(name : String) : Tag(name) {
|
||||
fun String.plus() {
|
||||
operator fun String.plus() {
|
||||
children.add(TextElement(this))
|
||||
}
|
||||
}
|
||||
@@ -148,7 +148,7 @@ fun html(init : HTML.() -> Unit) : HTML {
|
||||
}
|
||||
|
||||
// An excerpt from the Standard Library
|
||||
fun <K, V> MutableMap<K, V>.set(key : K, value : V) = this.put(key, value)
|
||||
operator fun <K, V> MutableMap<K, V>.set(key : K, value : V) = this.put(key, value)
|
||||
|
||||
fun println(message : Any?) {
|
||||
System.out.println(message)
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@ package html {
|
||||
public fun main(/*0*/ args: kotlin.Array<kotlin.String>): kotlin.Unit
|
||||
public fun print(/*0*/ message: kotlin.Any?): kotlin.Unit
|
||||
public fun println(/*0*/ message: kotlin.Any?): kotlin.Unit
|
||||
public fun </*0*/ K, /*1*/ V> kotlin.MutableMap<K, V>.set(/*0*/ key: K, /*1*/ value: V): V?
|
||||
public operator fun </*0*/ K, /*1*/ V> kotlin.MutableMap<K, V>.set(/*0*/ key: K, /*1*/ value: V): V?
|
||||
|
||||
public final class A : html.BodyTag {
|
||||
public constructor A()
|
||||
@@ -203,7 +203,7 @@ package html {
|
||||
public open override /*1*/ /*fake_override*/ fun render(/*0*/ builder: java.lang.StringBuilder, /*1*/ indent: kotlin.String): kotlin.Unit
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun renderAttributes(): kotlin.String?
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
public final fun kotlin.String.plus(): kotlin.Unit
|
||||
public final operator fun kotlin.String.plus(): kotlin.Unit
|
||||
}
|
||||
|
||||
public final class TextElement : html.Element {
|
||||
|
||||
+19
-19
@@ -7,73 +7,73 @@ class NotRange1() {
|
||||
}
|
||||
|
||||
abstract class NotRange2() {
|
||||
abstract fun iterator() : Unit
|
||||
abstract operator fun iterator() : Unit
|
||||
}
|
||||
|
||||
abstract class ImproperIterator1 {
|
||||
abstract fun hasNext() : Boolean
|
||||
abstract operator fun hasNext() : Boolean
|
||||
}
|
||||
|
||||
abstract class NotRange3() {
|
||||
abstract fun iterator() : ImproperIterator1
|
||||
abstract operator fun iterator() : ImproperIterator1
|
||||
}
|
||||
|
||||
abstract class ImproperIterator2 {
|
||||
abstract fun next() : Boolean
|
||||
abstract operator fun next() : Boolean
|
||||
}
|
||||
|
||||
abstract class NotRange4() {
|
||||
abstract fun iterator() : ImproperIterator2
|
||||
abstract operator fun iterator() : ImproperIterator2
|
||||
}
|
||||
|
||||
abstract class ImproperIterator3 {
|
||||
abstract fun hasNext() : Int
|
||||
abstract fun next() : Int
|
||||
abstract operator fun hasNext() : Int
|
||||
abstract operator fun next() : Int
|
||||
}
|
||||
|
||||
abstract class NotRange5() {
|
||||
abstract fun iterator() : ImproperIterator3
|
||||
abstract operator fun iterator() : ImproperIterator3
|
||||
}
|
||||
|
||||
abstract class AmbiguousHasNextIterator {
|
||||
abstract fun hasNext() : Boolean
|
||||
abstract operator fun hasNext() : Boolean
|
||||
val hasNext : Boolean get() = false
|
||||
abstract fun next() : Int
|
||||
abstract operator fun next() : Int
|
||||
}
|
||||
|
||||
abstract class NotRange6() {
|
||||
abstract fun iterator() : AmbiguousHasNextIterator
|
||||
abstract operator fun iterator() : AmbiguousHasNextIterator
|
||||
}
|
||||
|
||||
abstract class ImproperIterator4 {
|
||||
val hasNext : Int get() = 1
|
||||
abstract fun next() : Int
|
||||
abstract operator fun next() : Int
|
||||
}
|
||||
|
||||
abstract class NotRange7() {
|
||||
abstract fun iterator() : ImproperIterator3
|
||||
abstract operator fun iterator() : ImproperIterator3
|
||||
}
|
||||
|
||||
abstract class GoodIterator {
|
||||
abstract fun hasNext() : Boolean
|
||||
abstract fun next() : Int
|
||||
abstract operator fun hasNext() : Boolean
|
||||
abstract operator fun next() : Int
|
||||
}
|
||||
|
||||
abstract class Range0() {
|
||||
abstract fun iterator() : GoodIterator
|
||||
abstract operator fun iterator() : GoodIterator
|
||||
}
|
||||
|
||||
abstract class Range1() {
|
||||
abstract fun iterator() : Iterator<Int>
|
||||
abstract operator fun iterator() : Iterator<Int>
|
||||
}
|
||||
|
||||
abstract class ImproperIterator5 {
|
||||
abstract val String.hasNext : Boolean
|
||||
abstract fun next() : Int
|
||||
abstract operator fun next() : Int
|
||||
}
|
||||
|
||||
abstract class NotRange8() {
|
||||
abstract fun iterator() : ImproperIterator5
|
||||
abstract operator fun iterator() : ImproperIterator5
|
||||
}
|
||||
|
||||
|
||||
|
||||
+19
-19
@@ -6,25 +6,25 @@ public abstract class AmbiguousHasNextIterator {
|
||||
public constructor AmbiguousHasNextIterator()
|
||||
public final val hasNext: kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract fun hasNext(): kotlin.Boolean
|
||||
public abstract operator fun hasNext(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract fun next(): kotlin.Int
|
||||
public abstract operator fun next(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public abstract class GoodIterator {
|
||||
public constructor GoodIterator()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract fun hasNext(): kotlin.Boolean
|
||||
public abstract operator fun hasNext(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract fun next(): kotlin.Int
|
||||
public abstract operator fun next(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public abstract class ImproperIterator1 {
|
||||
public constructor ImproperIterator1()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract fun hasNext(): kotlin.Boolean
|
||||
public abstract operator fun hasNext(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
@@ -33,16 +33,16 @@ public abstract class ImproperIterator2 {
|
||||
public constructor ImproperIterator2()
|
||||
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 abstract fun next(): kotlin.Boolean
|
||||
public abstract operator fun next(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public abstract class ImproperIterator3 {
|
||||
public constructor ImproperIterator3()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract fun hasNext(): kotlin.Int
|
||||
public abstract operator fun hasNext(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract fun next(): kotlin.Int
|
||||
public abstract operator fun next(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ public abstract class ImproperIterator4 {
|
||||
public final val hasNext: kotlin.Int
|
||||
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 abstract fun next(): kotlin.Int
|
||||
public abstract operator fun next(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ public abstract class ImproperIterator5 {
|
||||
public abstract val kotlin.String.hasNext: kotlin.Boolean
|
||||
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 abstract fun next(): kotlin.Int
|
||||
public abstract operator fun next(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ public abstract class NotRange2 {
|
||||
public constructor NotRange2()
|
||||
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 abstract fun iterator(): kotlin.Unit
|
||||
public abstract operator fun iterator(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ public abstract class NotRange3 {
|
||||
public constructor NotRange3()
|
||||
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 abstract fun iterator(): ImproperIterator1
|
||||
public abstract operator fun iterator(): ImproperIterator1
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ public abstract class NotRange4 {
|
||||
public constructor NotRange4()
|
||||
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 abstract fun iterator(): ImproperIterator2
|
||||
public abstract operator fun iterator(): ImproperIterator2
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ public abstract class NotRange5 {
|
||||
public constructor NotRange5()
|
||||
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 abstract fun iterator(): ImproperIterator3
|
||||
public abstract operator fun iterator(): ImproperIterator3
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ public abstract class NotRange6 {
|
||||
public constructor NotRange6()
|
||||
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 abstract fun iterator(): AmbiguousHasNextIterator
|
||||
public abstract operator fun iterator(): AmbiguousHasNextIterator
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ public abstract class NotRange7 {
|
||||
public constructor NotRange7()
|
||||
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 abstract fun iterator(): ImproperIterator3
|
||||
public abstract operator fun iterator(): ImproperIterator3
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ public abstract class NotRange8 {
|
||||
public constructor NotRange8()
|
||||
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 abstract fun iterator(): ImproperIterator5
|
||||
public abstract operator fun iterator(): ImproperIterator5
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ public abstract class Range0 {
|
||||
public constructor Range0()
|
||||
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 abstract fun iterator(): GoodIterator
|
||||
public abstract operator fun iterator(): GoodIterator
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -139,6 +139,6 @@ public abstract class Range1 {
|
||||
public constructor Range1()
|
||||
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 abstract fun iterator(): kotlin.Iterator<kotlin.Int>
|
||||
public abstract operator fun iterator(): kotlin.Iterator<kotlin.Int>
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
+6
-6
@@ -1,6 +1,6 @@
|
||||
class IncDec() {
|
||||
fun inc() : IncDec = this
|
||||
fun dec() : IncDec = this
|
||||
operator fun inc() : IncDec = this
|
||||
operator fun dec() : IncDec = this
|
||||
}
|
||||
|
||||
fun testIncDec() {
|
||||
@@ -16,8 +16,8 @@ fun testIncDec() {
|
||||
}
|
||||
|
||||
class WrongIncDec() {
|
||||
fun inc() : Int = 1
|
||||
fun dec() : Int = 1
|
||||
operator fun inc() : Int = 1
|
||||
operator fun dec() : Int = 1
|
||||
}
|
||||
|
||||
fun testWrongIncDec() {
|
||||
@@ -29,8 +29,8 @@ fun testWrongIncDec() {
|
||||
}
|
||||
|
||||
class UnitIncDec() {
|
||||
fun inc() : Unit {}
|
||||
fun dec() : Unit {}
|
||||
operator fun inc() : Unit {}
|
||||
operator fun dec() : Unit {}
|
||||
}
|
||||
|
||||
fun testUnitIncDec() {
|
||||
|
||||
+6
-6
@@ -6,27 +6,27 @@ public fun testWrongIncDec(): kotlin.Unit
|
||||
|
||||
public final class IncDec {
|
||||
public constructor IncDec()
|
||||
public final fun dec(): IncDec
|
||||
public final operator fun dec(): IncDec
|
||||
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 final fun inc(): IncDec
|
||||
public final operator fun inc(): IncDec
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class UnitIncDec {
|
||||
public constructor UnitIncDec()
|
||||
public final fun dec(): kotlin.Unit
|
||||
public final operator fun dec(): kotlin.Unit
|
||||
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 final fun inc(): kotlin.Unit
|
||||
public final operator fun inc(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class WrongIncDec {
|
||||
public constructor WrongIncDec()
|
||||
public final fun dec(): kotlin.Int
|
||||
public final operator fun dec(): kotlin.Int
|
||||
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 final fun inc(): kotlin.Int
|
||||
public final operator fun inc(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
+2
-2
@@ -13,8 +13,8 @@ fun testSimpleCases() {
|
||||
}
|
||||
|
||||
class IncDec() {
|
||||
fun inc() : IncDec = this
|
||||
fun dec() : IncDec = this
|
||||
operator fun inc() : IncDec = this
|
||||
operator fun dec() : IncDec = this
|
||||
}
|
||||
|
||||
class MyTest() {
|
||||
|
||||
+2
-2
@@ -10,10 +10,10 @@ package unused_variables {
|
||||
|
||||
public final class IncDec {
|
||||
public constructor IncDec()
|
||||
public final fun dec(): unused_variables.IncDec
|
||||
public final operator fun dec(): unused_variables.IncDec
|
||||
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 final fun inc(): unused_variables.IncDec
|
||||
public final operator fun inc(): unused_variables.IncDec
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ fun bar(a: Ann = <!ANNOTATION_CLASS_CONSTRUCTOR_CALL!>Ann()<!>) {
|
||||
if (a is Ann) {}
|
||||
}
|
||||
|
||||
fun String.invoke() {}
|
||||
operator fun String.invoke() {}
|
||||
|
||||
// from stdlib
|
||||
fun <T> javaClass() : Class<T> = null <!CAST_NEVER_SUCCEEDS!>as<!> Class<T>
|
||||
|
||||
@@ -5,7 +5,7 @@ package
|
||||
public fun bar(/*0*/ a: Ann = ...): kotlin.Unit
|
||||
public fun foo(): kotlin.Unit
|
||||
public fun </*0*/ T> javaClass(): java.lang.Class<T>
|
||||
public fun kotlin.String.invoke(): kotlin.Unit
|
||||
public operator fun kotlin.String.invoke(): kotlin.Unit
|
||||
|
||||
@kotlin.annotation.annotation() public final class Ann : kotlin.Annotation {
|
||||
public constructor Ann()
|
||||
|
||||
@@ -13,8 +13,8 @@ public fun foo(): kotlin.Int
|
||||
public constructor Pair(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public final val y: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun component2(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ..., /*1*/ y: kotlin.Int = ...): Pair
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
+2
-2
@@ -7,8 +7,8 @@ public fun foo(): kotlin.Unit
|
||||
public constructor A(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public final val y: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun component2(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ..., /*1*/ y: kotlin.Int = ...): 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
|
||||
|
||||
@@ -6,8 +6,8 @@ public fun test(): kotlin.Any?
|
||||
public constructor P(/*0*/ a: kotlin.Int, /*1*/ b: kotlin.Int)
|
||||
public final val a: kotlin.Int
|
||||
public final val b: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun component2(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ a: kotlin.Int = ..., /*1*/ b: kotlin.Int = ...): 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
|
||||
|
||||
+2
-2
@@ -13,8 +13,8 @@ public fun foo(): kotlin.Int
|
||||
public constructor Pair(/*0*/ a: kotlin.Int, /*1*/ b: kotlin.Int)
|
||||
public final val a: kotlin.Int
|
||||
public final val b: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun component2(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ a: kotlin.Int = ..., /*1*/ b: kotlin.Int = ...): Pair
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
@base() @kotlin.data() public final class My {
|
||||
public constructor My(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ...): My
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
interface Map<K, out V>
|
||||
interface MutableMap<K, V>: Map<K, V> {
|
||||
fun set(k: K, v: V)
|
||||
operator fun set(k: K, v: V)
|
||||
}
|
||||
|
||||
fun p(p: Map<String, Int>) {
|
||||
|
||||
@@ -11,6 +11,6 @@ public interface Map</*0*/ K, /*1*/ out V> {
|
||||
public interface MutableMap</*0*/ K, /*1*/ V> : Map<K, V> {
|
||||
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 abstract fun set(/*0*/ k: K, /*1*/ v: V): kotlin.Unit
|
||||
public abstract operator fun set(/*0*/ k: K, /*1*/ v: V): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -17,7 +17,7 @@ fun test3() {
|
||||
fun throwNPE() = null!!
|
||||
|
||||
class A {
|
||||
fun plus(<!UNUSED_PARAMETER!>a<!>: A): Nothing = throw Exception()
|
||||
operator fun plus(<!UNUSED_PARAMETER!>a<!>: A): Nothing = throw Exception()
|
||||
}
|
||||
|
||||
fun bar() {}
|
||||
Vendored
+1
-1
@@ -11,7 +11,7 @@ package c {
|
||||
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 final fun plus(/*0*/ a: c.A): kotlin.Nothing
|
||||
public final operator fun plus(/*0*/ a: c.A): kotlin.Nothing
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
+5
-5
@@ -5,12 +5,12 @@ fun testArrayAccess1(array: Array<Any>) {
|
||||
}
|
||||
|
||||
fun testArrayAccess2() {
|
||||
fun Nothing.get(i: Int, s: String) {}
|
||||
operator fun Nothing.get(i: Int, s: String) {}
|
||||
todo()<!UNREACHABLE_CODE!>[1, ""]<!>
|
||||
}
|
||||
|
||||
fun testAraryAccess3() {
|
||||
fun Nothing.get(n: Nothing) {}
|
||||
operator fun Nothing.get(n: Nothing) {}
|
||||
todo()<!UNREACHABLE_CODE!>[todo()]<!>
|
||||
}
|
||||
|
||||
@@ -23,17 +23,17 @@ fun testArrayAssignment2(array: Array<Any>) {
|
||||
}
|
||||
|
||||
fun testArrayAssignment3(n: Nothing) {
|
||||
fun Nothing.set(i: Int, j: Int) {}
|
||||
operator fun Nothing.set(i: Int, j: Int) {}
|
||||
n<!UNREACHABLE_CODE!>[1] = 2<!>
|
||||
}
|
||||
|
||||
fun testArrayAssignment4(n: Nothing) {
|
||||
fun Nothing.set(i: Int, a: Any) {}
|
||||
operator fun Nothing.set(i: Int, a: Any) {}
|
||||
n<!UNREACHABLE_CODE!>[1] = todo()<!>
|
||||
}
|
||||
|
||||
fun testArrayPlusAssign(array: Array<Any>) {
|
||||
fun Any.plusAssign(a: Any) {}
|
||||
operator fun Any.plusAssign(a: Any) {}
|
||||
array[1] <!UNREACHABLE_CODE!>+=<!> todo()
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ fun testVariableDeclaration() {
|
||||
}
|
||||
|
||||
fun testPlusAssign() {
|
||||
fun Int.plusAssign(<!UNUSED_PARAMETER!>i<!>: Int) {}
|
||||
operator fun Int.plusAssign(<!UNUSED_PARAMETER!>i<!>: Int) {}
|
||||
|
||||
var a = 1
|
||||
a <!UNREACHABLE_CODE!>+=<!> todo()
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
fun testBinary1() {
|
||||
fun Int.times(<!UNUSED_PARAMETER!>s<!>: String) {}
|
||||
operator fun Int.times(<!UNUSED_PARAMETER!>s<!>: String) {}
|
||||
|
||||
todo() <!UNREACHABLE_CODE!>* ""<!>
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -1,12 +1,12 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun testCompound() {
|
||||
fun Nothing.get(i: Int) {}
|
||||
operator fun Nothing.get(i: Int) {}
|
||||
todo()<!UNREACHABLE_CODE!><!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>[12]<!>
|
||||
}
|
||||
|
||||
fun testCompound1() {
|
||||
fun Int.times(s: String): Array<String> = throw Exception()
|
||||
operator fun Int.times(s: String): Array<String> = throw Exception()
|
||||
<!UNREACHABLE_CODE!>(<!>todo() <!UNREACHABLE_CODE!>* "")[1]<!>
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
fun testFor() {
|
||||
fun Nothing.iterator() = (0..1).iterator()
|
||||
operator fun Nothing.iterator() = (0..1).iterator()
|
||||
|
||||
<!UNREACHABLE_CODE!>for (i in<!> todo()<!UNREACHABLE_CODE!>) {}<!>
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
fun testPrefix() {
|
||||
fun Any.not() {}
|
||||
operator fun Any.not() {}
|
||||
<!UNREACHABLE_CODE!>!<!>todo()
|
||||
}
|
||||
|
||||
fun testPostfixWithCall(n: Nothing) {
|
||||
fun Nothing.inc(): Nothing = this
|
||||
operator fun Nothing.inc(): Nothing = this
|
||||
n<!UNREACHABLE_CODE!>++<!>
|
||||
}
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ var c2 = 0
|
||||
|
||||
class A() {
|
||||
var p = 0
|
||||
fun divAssign(<!UNUSED_PARAMETER!>a<!> : Int) {
|
||||
operator fun divAssign(<!UNUSED_PARAMETER!>a<!> : Int) {
|
||||
c1++;
|
||||
}
|
||||
fun times(<!UNUSED_PARAMETER!>a<!> : Int) : A {
|
||||
operator fun times(<!UNUSED_PARAMETER!>a<!> : Int) : A {
|
||||
c2++;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -10,10 +10,10 @@ package kt1571 {
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public final var p: kotlin.Int
|
||||
public final fun divAssign(/*0*/ a: kotlin.Int): kotlin.Unit
|
||||
public final operator fun divAssign(/*0*/ a: kotlin.Int): kotlin.Unit
|
||||
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 final fun times(/*0*/ a: kotlin.Int): kt1571.A
|
||||
public final operator fun times(/*0*/ a: kotlin.Int): kt1571.A
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@ package
|
||||
public final val name: kotlin.String
|
||||
public final val parent: ProductGroup?
|
||||
public final val short_name: kotlin.String
|
||||
public final /*synthesized*/ fun component1(): kotlin.String
|
||||
public final /*synthesized*/ fun component2(): ProductGroup?
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.String
|
||||
public final operator /*synthesized*/ fun component2(): ProductGroup?
|
||||
public final /*synthesized*/ fun copy(/*0*/ short_name: kotlin.String = ..., /*1*/ parent: ProductGroup? = ...): ProductGroup
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
class Coll {
|
||||
fun iterator(): It = It()
|
||||
operator fun iterator(): It = It()
|
||||
}
|
||||
|
||||
class It {
|
||||
fun next() = 1
|
||||
fun hasNext() = false
|
||||
operator fun next() = 1
|
||||
operator fun hasNext() = false
|
||||
}
|
||||
|
||||
fun test(c: Coll?) {
|
||||
|
||||
+3
-3
@@ -6,15 +6,15 @@ public final class Coll {
|
||||
public constructor Coll()
|
||||
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 final fun iterator(): It
|
||||
public final operator fun iterator(): It
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class It {
|
||||
public constructor It()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun hasNext(): kotlin.Boolean
|
||||
public final operator fun hasNext(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final fun next(): kotlin.Int
|
||||
public final operator fun next(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
class Coll {
|
||||
fun iterator(): It? = null
|
||||
operator fun iterator(): It? = null
|
||||
}
|
||||
|
||||
class It {
|
||||
fun next() = 1
|
||||
fun hasNext() = false
|
||||
operator fun next() = 1
|
||||
operator fun hasNext() = false
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
+3
-3
@@ -6,15 +6,15 @@ public final class Coll {
|
||||
public constructor Coll()
|
||||
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 final fun iterator(): It?
|
||||
public final operator fun iterator(): It?
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class It {
|
||||
public constructor It()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun hasNext(): kotlin.Boolean
|
||||
public final operator fun hasNext(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final fun next(): kotlin.Int
|
||||
public final operator fun next(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ public fun foo(): kotlin.Unit
|
||||
@kotlin.data() public open class A {
|
||||
public constructor A(/*0*/ x: kotlin.Int)
|
||||
private final val x: kotlin.Int
|
||||
private final /*synthesized*/ fun component1(): kotlin.Int
|
||||
private final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ...): 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
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ public fun foo(/*0*/ a: A): kotlin.Unit
|
||||
@kotlin.data() public final class A {
|
||||
public constructor A(/*0*/ component1: kotlin.Int)
|
||||
public final val component1: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ component1: kotlin.Int = ...): 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
|
||||
|
||||
+2
-2
@@ -4,8 +4,8 @@ package
|
||||
public constructor A(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.String)
|
||||
public final val x: kotlin.Int
|
||||
public final val y: kotlin.String
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun component2(): kotlin.String
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.String
|
||||
public final fun copy(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.String): A
|
||||
public final fun copy(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.String): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ..., /*1*/ y: kotlin.String = ...): A
|
||||
|
||||
@@ -5,9 +5,9 @@ package
|
||||
public final val x: kotlin.Int
|
||||
public final val y: kotlin.String
|
||||
public final fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final fun component2(): kotlin.Int
|
||||
public final /*synthesized*/ fun component2(): kotlin.String
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.String
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ..., /*1*/ y: kotlin.String = ...): 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
|
||||
|
||||
@@ -9,7 +9,7 @@ public final class Outer {
|
||||
@kotlin.data() private final class Nested {
|
||||
public constructor Nested(/*0*/ c: kotlin.Int)
|
||||
public final val c: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ c: kotlin.Int = ...): Outer.Nested
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -4,8 +4,8 @@ package
|
||||
public constructor My(/*0*/ x: kotlin.Int, /*1*/ vararg y: kotlin.String /*kotlin.Array<out kotlin.String>*/)
|
||||
public final val x: kotlin.Int
|
||||
public final val y: kotlin.Array<out kotlin.String>
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun component2(): kotlin.Array<out kotlin.String>
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.Array<out kotlin.String>
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ..., /*1*/ vararg y: kotlin.String /*kotlin.Array<out kotlin.String>*/ = ...): My
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -9,7 +9,7 @@ public interface Allowed {
|
||||
@kotlin.data() public abstract class Base {
|
||||
public constructor Base(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ...): Base
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -19,7 +19,7 @@ public interface Allowed {
|
||||
@kotlin.data() public final class Complex : Allowed, NotAllowed {
|
||||
public constructor Complex(/*0*/ y: kotlin.Int)
|
||||
public final val y: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ y: kotlin.Int = ...): Complex
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -42,7 +42,7 @@ public final class Derived : Base {
|
||||
public final val y: kotlin.Int
|
||||
public final val z: kotlin.Int
|
||||
public final override /*1*/ /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun component2(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun copy(/*0*/ x: kotlin.Int = ...): Base
|
||||
public final /*synthesized*/ fun copy(/*0*/ z: kotlin.Int = ..., /*1*/ y: kotlin.Int = ...): Nasty
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package
|
||||
@kotlin.data() public final class A : T {
|
||||
public constructor A(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public final override /*1*/ /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator override /*1*/ /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ...): 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
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package
|
||||
@kotlin.data() public final class A : T {
|
||||
public constructor A(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public final override /*1*/ /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator override /*1*/ /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ...): 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
|
||||
|
||||
@@ -9,7 +9,7 @@ public final class Outer {
|
||||
@kotlin.data() public final inner class Inner {
|
||||
public constructor Inner(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ...): Outer.Inner
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
@kotlin.data() public final class Outer {
|
||||
public constructor Outer(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ...): Outer
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -6,8 +6,8 @@ public fun foo(/*0*/ a: A): kotlin.Unit
|
||||
public constructor A(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.String)
|
||||
public final val x: kotlin.Int
|
||||
public final val y: kotlin.String
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun component2(): kotlin.String
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.String
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ..., /*1*/ y: kotlin.String = ...): 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
|
||||
|
||||
@@ -6,8 +6,8 @@ public fun foo(/*0*/ arr: kotlin.Array<A>): kotlin.Unit
|
||||
public constructor A(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.String)
|
||||
public final val x: kotlin.Int
|
||||
public final val y: kotlin.String
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun component2(): kotlin.String
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.String
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ..., /*1*/ y: kotlin.String = ...): 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
|
||||
|
||||
@@ -5,7 +5,7 @@ public fun foo(/*0*/ a: A): kotlin.Unit
|
||||
@kotlin.data() public final class A {
|
||||
public constructor A(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ...): 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
|
||||
|
||||
@@ -6,9 +6,9 @@ package
|
||||
public final val x: kotlin.Int
|
||||
public final val y: kotlin.String
|
||||
public final val z: kotlin.String = ""
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun component2(): kotlin.String
|
||||
public final /*synthesized*/ fun component3(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.String
|
||||
public final operator /*synthesized*/ fun component3(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ..., /*1*/ y: kotlin.String = ..., /*2*/ x: kotlin.Int = ...): A1
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -20,8 +20,8 @@ package
|
||||
public final val x: kotlin.Int
|
||||
public final val x: kotlin.String = ""
|
||||
public final val y: kotlin.String
|
||||
public final /*synthesized*/ fun component1(): kotlin.String
|
||||
public final /*synthesized*/ fun component2(): kotlin.String
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.String
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.String
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ..., /*1*/ y: kotlin.String = ...): A2
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -32,8 +32,8 @@ package
|
||||
public constructor A3(/*0*/ <no name provided>: kotlin.Int, /*1*/ <no name provided>: kotlin.Int)
|
||||
public final val <no name provided>: kotlin.Int
|
||||
public final val <no name provided>: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun component2(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ <no name provided>: kotlin.Int = ..., /*1*/ <no name provided>: kotlin.Int = ...): A3
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
@kotlin.data() public sealed class My {
|
||||
private constructor My(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ...): My
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -9,7 +9,7 @@ package
|
||||
public final val x: kotlin.Int
|
||||
protected final override /*1*/ /*fake_override*/ fun clone(): kotlin.Any
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: First): kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ...): First
|
||||
public final override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -25,7 +25,7 @@ package
|
||||
@kotlin.data() @kotlin.annotation.annotation() public final class Fourth : kotlin.Annotation {
|
||||
public constructor Fourth(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ...): Fourth
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -6,8 +6,8 @@ public fun foo(/*0*/ a: A): kotlin.Unit
|
||||
public constructor A(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.String)
|
||||
public final val x: kotlin.Int
|
||||
public final val y: kotlin.String
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun component2(): kotlin.String
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.String
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ..., /*1*/ y: kotlin.String = ...): 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
|
||||
|
||||
@@ -6,8 +6,8 @@ public fun foo(/*0*/ a: A): kotlin.Unit
|
||||
public constructor A(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.String)
|
||||
public final var x: kotlin.Int
|
||||
public final var y: kotlin.String
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun component2(): kotlin.String
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component2(): kotlin.String
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ..., /*1*/ y: kotlin.String = ...): 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
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
interface G {
|
||||
fun get(x: Int, y: Int): Int = x + y
|
||||
fun set(x: Int, y: Int, value: Int) {}
|
||||
operator fun get(x: Int, y: Int): Int = x + y
|
||||
operator fun set(x: Int, y: Int, value: Int) {}
|
||||
}
|
||||
|
||||
fun foo1(a: Int?, b: G) {
|
||||
|
||||
+2
-2
@@ -7,8 +7,8 @@ public fun foo4(/*0*/ a: kotlin.Int?, /*1*/ b: G): kotlin.Unit
|
||||
|
||||
public interface G {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun get(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.Int): kotlin.Int
|
||||
public open operator fun get(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.Int): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open fun set(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.Int, /*2*/ value: kotlin.Int): kotlin.Unit
|
||||
public open operator fun set(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.Int, /*2*/ value: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -3,7 +3,7 @@
|
||||
interface A
|
||||
|
||||
interface B : A
|
||||
fun B.compareTo(b: B) = if (this == b) 0 else 1
|
||||
operator fun B.compareTo(b: B) = if (this == b) 0 else 1
|
||||
|
||||
fun foo(a: A): Boolean {
|
||||
val result = (a as B) < <!DEBUG_INFO_SMARTCAST!>a<!>
|
||||
|
||||
Vendored
+1
-1
@@ -2,7 +2,7 @@ package
|
||||
|
||||
public fun bar(/*0*/ a: A, /*1*/ b: B): kotlin.Boolean
|
||||
public fun foo(/*0*/ a: A): kotlin.Boolean
|
||||
public fun B.compareTo(/*0*/ b: B): kotlin.Int
|
||||
public operator fun B.compareTo(/*0*/ b: B): kotlin.Int
|
||||
|
||||
public interface A {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
|
||||
Vendored
+1
-1
@@ -3,7 +3,7 @@
|
||||
interface A
|
||||
|
||||
interface B : A
|
||||
fun B.plus(b: B) = if (this == b) b else this
|
||||
operator fun B.plus(b: B) = if (this == b) b else this
|
||||
|
||||
fun foo(a: A): B {
|
||||
val result = (a as B) + <!DEBUG_INFO_SMARTCAST!>a<!>
|
||||
|
||||
Vendored
+1
-1
@@ -2,7 +2,7 @@ package
|
||||
|
||||
public fun bar(/*0*/ a: A, /*1*/ b: B): B
|
||||
public fun foo(/*0*/ a: A): B
|
||||
public fun B.plus(/*0*/ b: B): B
|
||||
public operator fun B.plus(/*0*/ b: B): B
|
||||
|
||||
public interface A {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
fun Int.component1() = "a"
|
||||
operator fun Int.component1() = "a"
|
||||
|
||||
fun foo(a: Number) {
|
||||
val (x) = a as Int
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package
|
||||
|
||||
public fun foo(/*0*/ a: kotlin.Number): kotlin.Unit
|
||||
public fun kotlin.Int.component1(): kotlin.String
|
||||
public operator fun kotlin.Int.component1(): kotlin.String
|
||||
|
||||
Vendored
+2
-2
@@ -1,6 +1,6 @@
|
||||
class A {
|
||||
fun component1() : Int = 1
|
||||
fun component2() : Int = 2
|
||||
operator fun component1() : Int = 1
|
||||
operator fun component2() : Int = 2
|
||||
}
|
||||
|
||||
fun a(aa : A) {
|
||||
|
||||
Vendored
+2
-2
@@ -4,8 +4,8 @@ public fun a(/*0*/ aa: A): kotlin.Unit
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public final fun component1(): kotlin.Int
|
||||
public final fun component2(): kotlin.Int
|
||||
public final operator fun component1(): kotlin.Int
|
||||
public final operator fun component2(): kotlin.Int
|
||||
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
|
||||
|
||||
+3
-3
@@ -2,9 +2,9 @@
|
||||
package d
|
||||
|
||||
class A {
|
||||
fun component1() = 1
|
||||
fun component2() = 2
|
||||
fun component3() = 3
|
||||
operator fun component1() = 1
|
||||
operator fun component2() = 2
|
||||
operator fun component3() = 3
|
||||
}
|
||||
|
||||
fun foo(list: List<A>) {
|
||||
|
||||
+3
-3
@@ -5,9 +5,9 @@ package d {
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public final fun component1(): kotlin.Int
|
||||
public final fun component2(): kotlin.Int
|
||||
public final fun component3(): kotlin.Int
|
||||
public final operator fun component1(): kotlin.Int
|
||||
public final operator fun component2(): kotlin.Int
|
||||
public final operator fun component3(): kotlin.Int
|
||||
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
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
class A {
|
||||
fun component1() : Int = 1
|
||||
fun component2() : Int = 2
|
||||
operator fun component1() : Int = 1
|
||||
operator fun component2() : Int = 2
|
||||
}
|
||||
|
||||
fun a(aa : A?, b : Any) {
|
||||
|
||||
+2
-2
@@ -4,8 +4,8 @@ public fun a(/*0*/ aa: A?, /*1*/ b: kotlin.Any): kotlin.Unit
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public final fun component1(): kotlin.Int
|
||||
public final fun component2(): kotlin.Int
|
||||
public final operator fun component1(): kotlin.Int
|
||||
public final operator fun component2(): kotlin.Int
|
||||
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
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
class A {
|
||||
fun component1() : Int = 1
|
||||
fun component2() : Int = 2
|
||||
operator fun component1() : Int = 1
|
||||
operator fun component2() : Int = 2
|
||||
}
|
||||
|
||||
fun a() {
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@ public fun use(/*0*/ a: kotlin.Any): kotlin.Any
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public final fun component1(): kotlin.Int
|
||||
public final fun component2(): kotlin.Int
|
||||
public final operator fun component1(): kotlin.Int
|
||||
public final operator fun component2(): kotlin.Int
|
||||
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
|
||||
|
||||
+3
-3
@@ -4,13 +4,13 @@
|
||||
package a
|
||||
|
||||
class MyClass {
|
||||
fun component1() = 1
|
||||
fun component2() = "a"
|
||||
operator fun component1() = 1
|
||||
operator fun component2() = "a"
|
||||
}
|
||||
|
||||
class MyClass2 {}
|
||||
|
||||
fun MyClass2.component1() = 1.2
|
||||
operator fun MyClass2.component1() = 1.2
|
||||
|
||||
fun test(mc1: MyClass, mc2: MyClass2) {
|
||||
val (a, b) = mc1
|
||||
|
||||
+3
-3
@@ -2,12 +2,12 @@ package
|
||||
|
||||
package a {
|
||||
public fun test(/*0*/ mc1: a.MyClass, /*1*/ mc2: a.MyClass2): kotlin.Unit
|
||||
public fun a.MyClass2.component1(): kotlin.Double
|
||||
public operator fun a.MyClass2.component1(): kotlin.Double
|
||||
|
||||
public final class MyClass {
|
||||
public constructor MyClass()
|
||||
public final fun component1(): kotlin.Int
|
||||
public final fun component2(): kotlin.String
|
||||
public final operator fun component1(): kotlin.Int
|
||||
public final operator fun component2(): kotlin.String
|
||||
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
|
||||
|
||||
+2
-2
@@ -2,8 +2,8 @@
|
||||
package n
|
||||
|
||||
class C {
|
||||
fun component1() = 1
|
||||
fun component2() = 2
|
||||
operator fun component1() = 1
|
||||
operator fun component2() = 2
|
||||
}
|
||||
|
||||
fun test1(c: C) {
|
||||
|
||||
+2
-2
@@ -8,8 +8,8 @@ package n {
|
||||
|
||||
public final class C {
|
||||
public constructor C()
|
||||
public final fun component1(): kotlin.Int
|
||||
public final fun component2(): kotlin.Int
|
||||
public final operator fun component1(): kotlin.Int
|
||||
public final operator fun component2(): kotlin.Int
|
||||
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
|
||||
|
||||
Vendored
+3
-3
@@ -1,10 +1,10 @@
|
||||
class A {
|
||||
fun component1() = 1
|
||||
fun component2() = 1
|
||||
operator fun component1() = 1
|
||||
operator fun component2() = 1
|
||||
}
|
||||
|
||||
class C {
|
||||
fun iterator(): Iterator<A> = null!!
|
||||
operator fun iterator(): Iterator<A> = null!!
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
Vendored
+3
-3
@@ -4,8 +4,8 @@ public fun test(): kotlin.Unit
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public final fun component1(): kotlin.Int
|
||||
public final fun component2(): kotlin.Int
|
||||
public final operator fun component1(): kotlin.Int
|
||||
public final operator fun component2(): kotlin.Int
|
||||
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
|
||||
@@ -15,6 +15,6 @@ public 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 final fun iterator(): kotlin.Iterator<A>
|
||||
public final operator fun iterator(): kotlin.Iterator<A>
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
class A {
|
||||
fun component1() = 1
|
||||
fun component2() = 1.0
|
||||
operator fun component1() = 1
|
||||
operator fun component2() = 1.0
|
||||
}
|
||||
|
||||
class C {
|
||||
fun iterator(): Iterator<A> = null!!
|
||||
operator fun iterator(): Iterator<A> = null!!
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
+3
-3
@@ -4,8 +4,8 @@ public fun test(): kotlin.Unit
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public final fun component1(): kotlin.Int
|
||||
public final fun component2(): kotlin.Double
|
||||
public final operator fun component1(): kotlin.Int
|
||||
public final operator fun component2(): kotlin.Double
|
||||
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
|
||||
@@ -15,6 +15,6 @@ public 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 final fun iterator(): kotlin.Iterator<A>
|
||||
public final operator fun iterator(): kotlin.Iterator<A>
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
class A {
|
||||
<!CONFLICTING_OVERLOADS!>fun component1()<!> = 1
|
||||
<!CONFLICTING_OVERLOADS!>fun component1()<!> = 1
|
||||
fun component2() = 1
|
||||
<!CONFLICTING_OVERLOADS!>operator fun component1()<!> = 1
|
||||
<!CONFLICTING_OVERLOADS!>operator fun component1()<!> = 1
|
||||
operator fun component2() = 1
|
||||
}
|
||||
|
||||
class C {
|
||||
fun iterator(): Iterator<A> = null!!
|
||||
operator fun iterator(): Iterator<A> = null!!
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
+4
-4
@@ -4,9 +4,9 @@ public fun test(): kotlin.Unit
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public final fun component1(): kotlin.Int
|
||||
public final fun component1(): kotlin.Int
|
||||
public final fun component2(): kotlin.Int
|
||||
public final operator fun component1(): kotlin.Int
|
||||
public final operator fun component1(): kotlin.Int
|
||||
public final operator fun component2(): kotlin.Int
|
||||
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
|
||||
@@ -16,6 +16,6 @@ public 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 final fun iterator(): kotlin.Iterator<A>
|
||||
public final operator fun iterator(): kotlin.Iterator<A>
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
class A {
|
||||
fun component1() = 1
|
||||
operator fun component1() = 1
|
||||
}
|
||||
|
||||
class C {
|
||||
fun iterator(): Iterator<A> = null!!
|
||||
operator fun iterator(): Iterator<A> = null!!
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@ public fun test(): kotlin.Unit
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public final fun component1(): kotlin.Int
|
||||
public final operator fun component1(): kotlin.Int
|
||||
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
|
||||
@@ -14,6 +14,6 @@ public 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 final fun iterator(): kotlin.Iterator<A>
|
||||
public final operator fun iterator(): kotlin.Iterator<A>
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
Vendored
+3
-3
@@ -1,10 +1,10 @@
|
||||
class A {
|
||||
}
|
||||
fun A.component1() = 1
|
||||
fun A.component2() = 1
|
||||
operator fun A.component1() = 1
|
||||
operator fun A.component2() = 1
|
||||
|
||||
class C {
|
||||
fun iterator(): Iterator<A> = null!!
|
||||
operator fun iterator(): Iterator<A> = null!!
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
Vendored
+3
-3
@@ -1,8 +1,8 @@
|
||||
package
|
||||
|
||||
public fun test(): kotlin.Unit
|
||||
public fun A.component1(): kotlin.Int
|
||||
public fun A.component2(): kotlin.Int
|
||||
public operator fun A.component1(): kotlin.Int
|
||||
public operator fun A.component2(): kotlin.Int
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
@@ -15,6 +15,6 @@ public 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 final fun iterator(): kotlin.Iterator<A>
|
||||
public final operator fun iterator(): kotlin.Iterator<A>
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
Vendored
+3
-3
@@ -1,10 +1,10 @@
|
||||
class A {
|
||||
fun component1() = 1
|
||||
fun component2() = 1.0
|
||||
operator fun component1() = 1
|
||||
operator fun component2() = 1.0
|
||||
}
|
||||
|
||||
class C {
|
||||
fun iterator(): Iterator<A> = null!!
|
||||
operator fun iterator(): Iterator<A> = null!!
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
Vendored
+3
-3
@@ -4,8 +4,8 @@ public fun test(): kotlin.Unit
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public final fun component1(): kotlin.Int
|
||||
public final fun component2(): kotlin.Double
|
||||
public final operator fun component1(): kotlin.Int
|
||||
public final operator fun component2(): kotlin.Double
|
||||
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
|
||||
@@ -15,6 +15,6 @@ public 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 final fun iterator(): kotlin.Iterator<A>
|
||||
public final operator fun iterator(): kotlin.Iterator<A>
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
Vendored
+3
-3
@@ -1,10 +1,10 @@
|
||||
class A {
|
||||
fun component1() = 1
|
||||
fun component2() = 1
|
||||
operator fun component1() = 1
|
||||
operator fun component2() = 1
|
||||
}
|
||||
|
||||
class C {
|
||||
fun iterator(): Iterator<A> = null!!
|
||||
operator fun iterator(): Iterator<A> = null!!
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
Vendored
+3
-3
@@ -4,8 +4,8 @@ public fun test(): kotlin.Unit
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public final fun component1(): kotlin.Int
|
||||
public final fun component2(): kotlin.Int
|
||||
public final operator fun component1(): kotlin.Int
|
||||
public final operator fun component2(): kotlin.Int
|
||||
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
|
||||
@@ -15,6 +15,6 @@ public 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 final fun iterator(): kotlin.Iterator<A>
|
||||
public final operator fun iterator(): kotlin.Iterator<A>
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -1,9 +1,9 @@
|
||||
class A {
|
||||
fun component1() = 1
|
||||
operator fun component1() = 1
|
||||
}
|
||||
|
||||
class C {
|
||||
fun iterator(): Iterator<A> = null!!
|
||||
operator fun iterator(): Iterator<A> = null!!
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
Vendored
+2
-2
@@ -4,7 +4,7 @@ public fun test(): kotlin.Unit
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public final fun component1(): kotlin.Int
|
||||
public final operator fun component1(): kotlin.Int
|
||||
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
|
||||
@@ -14,6 +14,6 @@ public 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 final fun iterator(): kotlin.Iterator<A>
|
||||
public final operator fun iterator(): kotlin.Iterator<A>
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
+2
-2
@@ -9,8 +9,8 @@ package test {
|
||||
public constructor Pair</*0*/ A, /*1*/ B>(/*0*/ a: A, /*1*/ b: B)
|
||||
public final val a: A
|
||||
public final val b: B
|
||||
public final /*synthesized*/ fun component1(): A
|
||||
public final /*synthesized*/ fun component2(): B
|
||||
public final operator /*synthesized*/ fun component1(): A
|
||||
public final operator /*synthesized*/ fun component2(): B
|
||||
public final /*synthesized*/ fun copy(/*0*/ a: A = ..., /*1*/ b: B = ...): test.Pair<A, 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
|
||||
|
||||
Vendored
+2
-2
@@ -31,8 +31,8 @@ class MyProperty<R, T> {
|
||||
}
|
||||
}
|
||||
|
||||
fun <R, T> MyProperty<R, T>.plus() = MyProperty<R, T>()
|
||||
fun <R, T> MyProperty<R, T>.minus(<!UNUSED_PARAMETER!>i<!>: Int) = MyProperty<R, T>()
|
||||
operator fun <R, T> MyProperty<R, T>.plus() = MyProperty<R, T>()
|
||||
operator fun <R, T> MyProperty<R, T>.minus(<!UNUSED_PARAMETER!>i<!>: Int) = MyProperty<R, T>()
|
||||
|
||||
object O {
|
||||
fun getMyProperty<A, B>() = MyProperty<A, B>()
|
||||
|
||||
Vendored
+2
-2
@@ -5,8 +5,8 @@ package baz {
|
||||
public fun getMyConcreteProperty(): baz.MyProperty<kotlin.Any?, kotlin.String>
|
||||
public fun </*0*/ A, /*1*/ B> getMyProperty(): baz.MyProperty<A, B>
|
||||
public fun println(/*0*/ a: kotlin.Any?): kotlin.Any?
|
||||
public fun </*0*/ R, /*1*/ T> baz.MyProperty<R, T>.minus(/*0*/ i: kotlin.Int): baz.MyProperty<R, T>
|
||||
public fun </*0*/ R, /*1*/ T> baz.MyProperty<R, T>.plus(): baz.MyProperty<R, T>
|
||||
public operator fun </*0*/ R, /*1*/ T> baz.MyProperty<R, T>.minus(/*0*/ i: kotlin.Int): baz.MyProperty<R, T>
|
||||
public operator fun </*0*/ R, /*1*/ T> baz.MyProperty<R, T>.plus(): baz.MyProperty<R, T>
|
||||
|
||||
public final class A {
|
||||
public constructor A(/*0*/ outer: baz.Outer)
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
class Data {
|
||||
@Deprecated("text")
|
||||
fun component1(): String = throw Exception()
|
||||
fun component2(): String = throw Exception()
|
||||
operator fun component1(): String = throw Exception()
|
||||
operator fun component2(): String = throw Exception()
|
||||
}
|
||||
|
||||
fun use() {
|
||||
|
||||
@@ -4,8 +4,8 @@ public fun use(): kotlin.Unit
|
||||
|
||||
public final class Data {
|
||||
public constructor Data()
|
||||
@kotlin.Deprecated(value = "text") public final fun component1(): kotlin.String
|
||||
public final fun component2(): kotlin.String
|
||||
@kotlin.Deprecated(value = "text") public final operator fun component1(): kotlin.String
|
||||
public final operator fun component2(): kotlin.String
|
||||
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
|
||||
|
||||
@@ -13,7 +13,7 @@ fun Obsolete(param: Int = 1): UsefulClass = UsefulClass(param)
|
||||
|
||||
class Invocable {
|
||||
@Deprecated("message")
|
||||
fun invoke() {}
|
||||
operator fun invoke() {}
|
||||
}
|
||||
|
||||
object InvocableHolder {
|
||||
|
||||
@@ -29,7 +29,7 @@ public final class Invocable {
|
||||
public constructor Invocable()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@kotlin.Deprecated(value = "message") public final fun invoke(): kotlin.Unit
|
||||
@kotlin.Deprecated(value = "message") public final operator fun invoke(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
class Iter {
|
||||
@Deprecated("text")
|
||||
fun iterator() : IterIterator = throw Exception()
|
||||
operator fun iterator() : IterIterator = throw Exception()
|
||||
|
||||
class IterIterator {
|
||||
fun hasNext(): Boolean = throw UnsupportedOperationException()
|
||||
fun next(): String = throw UnsupportedOperationException()
|
||||
operator fun hasNext(): Boolean = throw UnsupportedOperationException()
|
||||
operator fun next(): String = throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
|
||||
class Iter2 {
|
||||
fun iterator() : Iter2Iterator = throw Exception()
|
||||
operator fun iterator() : Iter2Iterator = throw Exception()
|
||||
class Iter2Iterator {
|
||||
@Deprecated("text")
|
||||
fun hasNext(): Boolean = throw UnsupportedOperationException()
|
||||
operator fun hasNext(): Boolean = throw UnsupportedOperationException()
|
||||
@Deprecated("text")
|
||||
fun next(): String = throw UnsupportedOperationException()
|
||||
operator fun next(): String = throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,15 +6,15 @@ public final class Iter {
|
||||
public constructor Iter()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@kotlin.Deprecated(value = "text") public final fun iterator(): Iter.IterIterator
|
||||
@kotlin.Deprecated(value = "text") public final operator fun iterator(): Iter.IterIterator
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
public final class IterIterator {
|
||||
public constructor IterIterator()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun hasNext(): kotlin.Boolean
|
||||
public final operator fun hasNext(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final fun next(): kotlin.String
|
||||
public final operator fun next(): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
@@ -23,15 +23,15 @@ public final class Iter2 {
|
||||
public constructor Iter2()
|
||||
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 final fun iterator(): Iter2.Iter2Iterator
|
||||
public final operator fun iterator(): Iter2.Iter2Iterator
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
public final class Iter2Iterator {
|
||||
public constructor Iter2Iterator()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@kotlin.Deprecated(value = "text") public final fun hasNext(): kotlin.Boolean
|
||||
@kotlin.Deprecated(value = "text") public final operator fun hasNext(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@kotlin.Deprecated(value = "text") public final fun next(): kotlin.String
|
||||
@kotlin.Deprecated(value = "text") public final operator fun next(): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package
|
||||
@kotlin.data() public final class C {
|
||||
public constructor C(/*0*/ c: kotlin.Int)
|
||||
public final val c: kotlin.Int
|
||||
public final /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ c: kotlin.Int = ...): C
|
||||
public final fun `copy$default`(/*0*/ c: C, /*1*/ x: kotlin.Int, /*2*/ m: kotlin.Int): C
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
|
||||
@@ -16,7 +16,7 @@ fun <T: Any, E> T.foo(<!UNUSED_PARAMETER!>x<!> : E, y : A) : T {
|
||||
|
||||
class A
|
||||
|
||||
fun A.plus(<!UNUSED_PARAMETER!>a<!> : Any) {
|
||||
operator fun A.plus(<!UNUSED_PARAMETER!>a<!> : Any) {
|
||||
|
||||
1.foo()
|
||||
true.<!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>foo<!>(<!NO_VALUE_FOR_PARAMETER, NO_VALUE_FOR_PARAMETER!>)<!>
|
||||
@@ -24,11 +24,11 @@ fun A.plus(<!UNUSED_PARAMETER!>a<!> : Any) {
|
||||
<!UNUSED_EXPRESSION!>1<!>
|
||||
}
|
||||
|
||||
fun A.plus(<!UNUSED_PARAMETER!>a<!> : Int) {
|
||||
operator fun A.plus(<!UNUSED_PARAMETER!>a<!> : Int) {
|
||||
<!UNUSED_EXPRESSION!>1<!>
|
||||
}
|
||||
|
||||
fun <T> T.minus(<!UNUSED_PARAMETER!>t<!> : T) : Int = 1
|
||||
operator fun <T> T.minus(<!UNUSED_PARAMETER!>t<!> : T) : Int = 1
|
||||
|
||||
fun test() {
|
||||
val <!UNUSED_VARIABLE!>y<!> = 1.abs
|
||||
|
||||
@@ -23,10 +23,10 @@ package outer {
|
||||
public fun test(): kotlin.Unit
|
||||
public fun </*0*/ T : kotlin.Any, /*1*/ E> T.foo(/*0*/ x: E, /*1*/ y: outer.A): T
|
||||
public fun kotlin.Int.foo(): kotlin.Int
|
||||
public fun </*0*/ T> T.minus(/*0*/ t: T): kotlin.Int
|
||||
public operator fun </*0*/ T> T.minus(/*0*/ t: T): kotlin.Int
|
||||
public fun kotlin.Int?.optint(): kotlin.Unit
|
||||
public fun outer.A.plus(/*0*/ a: kotlin.Any): kotlin.Unit
|
||||
public fun outer.A.plus(/*0*/ a: kotlin.Int): kotlin.Unit
|
||||
public operator fun outer.A.plus(/*0*/ a: kotlin.Any): kotlin.Unit
|
||||
public operator fun outer.A.plus(/*0*/ a: kotlin.Int): kotlin.Unit
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
|
||||
@@ -8,12 +8,12 @@ fun <T> java.util.Enumeration<T>.iterator() = object: Iterator<T> {
|
||||
|
||||
interface MyIterator<T> {
|
||||
|
||||
fun hasNext() : Boolean
|
||||
operator fun hasNext() : Boolean
|
||||
|
||||
fun next() : T
|
||||
operator fun next() : T
|
||||
}
|
||||
|
||||
fun <T : Any> T?.iterator() = object : MyIterator<T> {
|
||||
operator fun <T : Any> T?.iterator() = object : MyIterator<T> {
|
||||
var hasNext = this@iterator != null
|
||||
private set
|
||||
override fun hasNext() = hasNext
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user