-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
^KT-51844 ^KT-52503 Fixed
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// WITH_STDLIB | ||
|
||
abstract class Foo { | ||
abstract fun contains(x: Int); | ||
} | ||
|
||
// ERROR: Type checking has run into a recursive problem. Easiest workaround: specify types of your declarations explicitly | ||
fun Foo.contains(vararg xs: Int) = xs.forEach(this::contains) | ||
|
||
fun box(): String { | ||
object : Foo() { | ||
override fun contains(x: Int) {} | ||
}.contains(1) | ||
return "OK" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// FIR_IDENTICAL | ||
// WITH_STDLIB | ||
|
||
abstract class Foo | ||
|
||
object A { | ||
fun Foo.contains(vararg xs: Int) = // 1 | ||
xs.forEach(this::<!EXTENSION_IN_CLASS_REFERENCE_NOT_ALLOWED!>contains<!>) // resolved to (2) in 1.7.0-RC, should be error "Type checking has run into a recursive problem" | ||
} | ||
|
||
fun Any.contains(vararg xs: Int) {} // 2 | ||
|
||
fun box(): String { | ||
object : Foo() {}.contains(1) | ||
return "OK" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package | ||
|
||
public fun box(): kotlin.String | ||
public fun kotlin.Any.contains(/*0*/ vararg xs: kotlin.Int /*kotlin.IntArray*/): kotlin.Unit | ||
|
||
public object A { | ||
private 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 | ||
public final fun Foo.contains(/*0*/ vararg xs: kotlin.Int /*kotlin.IntArray*/): kotlin.Unit | ||
} | ||
|
||
public abstract class Foo { | ||
public constructor 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 | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// FIR_IDENTICAL | ||
// FULL_JDK | ||
// WITH_STDLIB | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. | ||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. | ||
*/ | ||
|
||
package org.jetbrains.kotlin.types.error | ||
|
||
abstract class LazyWrappedTypeComputationException : RuntimeException() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.