Replace "jet" package name with "kotlin" in testData
This commit is contained in:
@@ -131,55 +131,55 @@ fun f15(a : A?) {
|
||||
fun getStringLength(obj : Any) : Char? {
|
||||
if (obj !is String)
|
||||
return null
|
||||
return <info descr="Automatically cast to jet.String">obj</info>.get(0) // no cast to jet.String is needed
|
||||
return <info descr="Automatically cast to kotlin.String">obj</info>.get(0) // no cast to kotlin.String is needed
|
||||
}
|
||||
|
||||
fun toInt(i: Int?): Int = if (i != null) <info descr="Automatically cast to jet.Int">i</info> else 0
|
||||
fun toInt(i: Int?): Int = if (i != null) <info descr="Automatically cast to kotlin.Int">i</info> else 0
|
||||
fun illegalWhenBody(a: Any): Int = when(a) {
|
||||
is Int -> <info descr="Automatically cast to jet.Int">a</info>
|
||||
is String -> <error descr="[TYPE_MISMATCH] Type mismatch: inferred type is jet.Any but jet.Int was expected">a</error>
|
||||
is Int -> <info descr="Automatically cast to kotlin.Int">a</info>
|
||||
is String -> <error descr="[TYPE_MISMATCH] Type mismatch: inferred type is kotlin.Any but kotlin.Int was expected">a</error>
|
||||
else -> 1
|
||||
}
|
||||
fun illegalWhenBlock(a: Any): Int {
|
||||
when(a) {
|
||||
is Int -> return <info descr="Automatically cast to jet.Int">a</info>
|
||||
is String -> return <error descr="[TYPE_MISMATCH] Type mismatch: inferred type is jet.Any but jet.Int was expected">a</error>
|
||||
is Int -> return <info descr="Automatically cast to kotlin.Int">a</info>
|
||||
is String -> return <error descr="[TYPE_MISMATCH] Type mismatch: inferred type is kotlin.Any but kotlin.Int was expected">a</error>
|
||||
else -> return 1
|
||||
}
|
||||
}
|
||||
fun declarations(a: Any?) {
|
||||
if (a is String) {
|
||||
val <warning>p4</warning>: String = <info descr="Automatically cast to jet.String">a</info>
|
||||
val <warning>p4</warning>: String = <info descr="Automatically cast to kotlin.String">a</info>
|
||||
}
|
||||
if (a is String?) {
|
||||
if (a != null) {
|
||||
val <warning>s</warning>: String = <info descr="Automatically cast to jet.String">a</info>
|
||||
val <warning>s</warning>: String = <info descr="Automatically cast to kotlin.String">a</info>
|
||||
}
|
||||
}
|
||||
if (a != null) {
|
||||
if (a is String?) {
|
||||
val <warning>s</warning>: String = <info descr="Automatically cast to jet.String">a</info>
|
||||
val <warning>s</warning>: String = <info descr="Automatically cast to kotlin.String">a</info>
|
||||
}
|
||||
}
|
||||
}
|
||||
fun vars(a: Any?) {
|
||||
var <warning>b</warning>: Int = 0
|
||||
if (a is Int) {
|
||||
b = <warning><info descr="Automatically cast to jet.Int">a</info></warning>
|
||||
b = <warning><info descr="Automatically cast to kotlin.Int">a</info></warning>
|
||||
}
|
||||
}
|
||||
fun returnFunctionLiteralBlock(<info>a</info>: Any?): Function0<Int> {
|
||||
if (<info>a</info> is Int) return { <info descr="Automatically cast to jet.Int"><info>a</info></info> }
|
||||
if (<info>a</info> is Int) return { <info descr="Automatically cast to kotlin.Int"><info>a</info></info> }
|
||||
else return { 1 }
|
||||
}
|
||||
fun returnFunctionLiteral(<info>a</info>: Any?): Function0<Int> =
|
||||
if (<info>a</info> is Int) { (): Int -> <info descr="Automatically cast to jet.Int"><info>a</info></info> }
|
||||
if (<info>a</info> is Int) { (): Int -> <info descr="Automatically cast to kotlin.Int"><info>a</info></info> }
|
||||
else { () -> 1 }
|
||||
|
||||
fun merge<TYPO descr="Typo: In word 'Autocasts'">Autocasts</TYPO>(a: Any?) {
|
||||
if (a is String || a is Int) {
|
||||
a.<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: compareTo">compareTo</error>("")
|
||||
<info descr="Automatically cast to jet.Any"><info>a</info></info>.toString()
|
||||
<info descr="Automatically cast to kotlin.Any"><info>a</info></info>.toString()
|
||||
}
|
||||
if (a is Int || a is String) {
|
||||
a.<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: compareTo">compareTo</error>("")
|
||||
@@ -188,9 +188,9 @@ fun merge<TYPO descr="Typo: In word 'Autocasts'">Autocasts</TYPO>(a: Any?) {
|
||||
is String, is Any -> a.<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: compareTo">compareTo</error>("")
|
||||
}
|
||||
if (a is String && a is Any) {
|
||||
val <warning>i</warning>: Int = <info descr="Automatically cast to jet.String">a</info>.compareTo("")
|
||||
val <warning>i</warning>: Int = <info descr="Automatically cast to kotlin.String">a</info>.compareTo("")
|
||||
}
|
||||
if (a is String && <info descr="Automatically cast to jet.String">a</info>.compareTo("") == 0) {}
|
||||
if (a is String && <info descr="Automatically cast to kotlin.String">a</info>.compareTo("") == 0) {}
|
||||
if (a is String || a.<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: compareTo">compareTo</error>("") <error>==</error> 0) {}
|
||||
}
|
||||
|
||||
@@ -198,10 +198,10 @@ fun merge<TYPO descr="Typo: In word 'Autocasts'">Autocasts</TYPO>(a: Any?) {
|
||||
fun f(): String {
|
||||
var <info>a</info>: Any = 11
|
||||
if (<info>a</info> is String) {
|
||||
val <warning>i</warning>: String = <error descr="[AUTOCAST_IMPOSSIBLE] Automatic cast to 'jet.String' is impossible, because 'a' could have changed since the is-check">a</error>
|
||||
<error descr="[AUTOCAST_IMPOSSIBLE] Automatic cast to 'jet.String' is impossible, because 'a' could have changed since the is-check">a</error>.compareTo("f")
|
||||
val <warning>f</warning>: Function0<String> = { <error descr="[AUTOCAST_IMPOSSIBLE] Automatic cast to 'jet.String' is impossible, because 'a' could have changed since the is-check">a</error> }
|
||||
return <error descr="[AUTOCAST_IMPOSSIBLE] Automatic cast to 'jet.String' is impossible, because 'a' could have changed since the is-check">a</error>
|
||||
val <warning>i</warning>: String = <error descr="[AUTOCAST_IMPOSSIBLE] Automatic cast to 'kotlin.String' is impossible, because 'a' could have changed since the is-check">a</error>
|
||||
<error descr="[AUTOCAST_IMPOSSIBLE] Automatic cast to 'kotlin.String' is impossible, because 'a' could have changed since the is-check">a</error>.compareTo("f")
|
||||
val <warning>f</warning>: Function0<String> = { <error descr="[AUTOCAST_IMPOSSIBLE] Automatic cast to 'kotlin.String' is impossible, because 'a' could have changed since the is-check">a</error> }
|
||||
return <error descr="[AUTOCAST_IMPOSSIBLE] Automatic cast to 'kotlin.String' is impossible, because 'a' could have changed since the is-check">a</error>
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@@ -209,14 +209,14 @@ fun f(): String {
|
||||
fun foo(aa: Any): Int {
|
||||
var a = aa
|
||||
if (a is Int) {
|
||||
return <error descr="[AUTOCAST_IMPOSSIBLE] Automatic cast to 'jet.Int' is impossible, because 'a' could have changed since the is-check">a</error>
|
||||
return <error descr="[AUTOCAST_IMPOSSIBLE] Automatic cast to 'kotlin.Int' is impossible, because 'a' could have changed since the is-check">a</error>
|
||||
}
|
||||
return 1
|
||||
}
|
||||
|
||||
fun inForLoop(x: Any?) {
|
||||
if (x is Array<String>) {
|
||||
for (i in <info descr="Automatically cast to jet.Array<jet.String>">x</info>) {}
|
||||
for (i in <info descr="Automatically cast to kotlin.Array<kotlin.String>">x</info>) {}
|
||||
}
|
||||
for (i in <error descr="[ITERATOR_MISSING] For-loop range must have an iterator() method">x</error>) {}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ trait <lineMarker></lineMarker>TestTrait {
|
||||
class A {
|
||||
class B {
|
||||
class object : TestTrait { // TODO: No line marker
|
||||
override fun <lineMarker descr="<b>internal</b> <b>open</b> <b>fun</b> test(): jet.Unit <i>defined in</i> A.B.<class-object-for-B><br/>implements<br/><b>internal</b> <b>abstract</b> <b>fun</b> test(): jet.Unit <i>defined in</i> TestTrait"></lineMarker>test() {
|
||||
override fun <lineMarker descr="<b>internal</b> <b>open</b> <b>fun</b> test(): kotlin.Unit <i>defined in</i> A.B.<class-object-for-B><br/>implements<br/><b>internal</b> <b>abstract</b> <b>fun</b> test(): kotlin.Unit <i>defined in</i> TestTrait"></lineMarker>test() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,5 +9,5 @@ open class <lineMarker></lineMarker>C(b : B) : B by b, A {
|
||||
}
|
||||
|
||||
class D(b : B) : C(b) {
|
||||
override fun <lineMarker descr="<b>internal</b> <b>open</b> <b>fun</b> f(): jet.Unit <i>defined in</i> D<br/>overrides<br/><b>internal</b> <b>open</b> <b>fun</b> f(): jet.Unit <i>defined in</i> A"></lineMarker>f() {}
|
||||
override fun <lineMarker descr="<b>internal</b> <b>open</b> <b>fun</b> f(): kotlin.Unit <i>defined in</i> D<br/>overrides<br/><b>internal</b> <b>open</b> <b>fun</b> f(): kotlin.Unit <i>defined in</i> A"></lineMarker>f() {}
|
||||
}
|
||||
@@ -9,5 +9,5 @@ open class <lineMarker></lineMarker>C(b : B) : B by b, A {
|
||||
}
|
||||
|
||||
class D(b : B) : C(b) {
|
||||
override val <lineMarker descr="<b>internal</b> <b>open</b> <b>val</b> f: jet.Int <i>defined in</i> D<br/>overrides<br/><b>internal</b> <b>open</b> <b>val</b> f: jet.Int <i>defined in</i> A"></lineMarker>f: Int = 2
|
||||
override val <lineMarker descr="<b>internal</b> <b>open</b> <b>val</b> f: kotlin.Int <i>defined in</i> D<br/>overrides<br/><b>internal</b> <b>open</b> <b>val</b> f: kotlin.Int <i>defined in</i> A"></lineMarker>f: Int = 2
|
||||
}
|
||||
@@ -7,5 +7,5 @@ trait <lineMarker></lineMarker>B : A
|
||||
trait <lineMarker></lineMarker>C : B, A
|
||||
|
||||
class SomeClass() : C {
|
||||
override fun <lineMarker descr="<b>internal</b> <b>open</b> <b>fun</b> f(): jet.Unit <i>defined in</i> SomeClass<br/>overrides<br/><b>internal</b> <b>open</b> <b>fun</b> f(): jet.Unit <i>defined in</i> A"></lineMarker>f() {}
|
||||
override fun <lineMarker descr="<b>internal</b> <b>open</b> <b>fun</b> f(): kotlin.Unit <i>defined in</i> SomeClass<br/>overrides<br/><b>internal</b> <b>open</b> <b>fun</b> f(): kotlin.Unit <i>defined in</i> A"></lineMarker>f() {}
|
||||
}
|
||||
+1
-1
@@ -9,5 +9,5 @@ trait <lineMarker></lineMarker>B : A {
|
||||
trait <lineMarker></lineMarker>C : B, A
|
||||
|
||||
class SomeClass() : C {
|
||||
override fun <lineMarker descr="<b>internal</b> <b>open</b> <b>fun</b> f(): jet.Unit <i>defined in</i> SomeClass<br/>overrides<br/><b>internal</b> <b>open</b> <b>fun</b> f(): jet.Unit <i>defined in</i> B"></lineMarker>f() {}
|
||||
override fun <lineMarker descr="<b>internal</b> <b>open</b> <b>fun</b> f(): kotlin.Unit <i>defined in</i> SomeClass<br/>overrides<br/><b>internal</b> <b>open</b> <b>fun</b> f(): kotlin.Unit <i>defined in</i> B"></lineMarker>f() {}
|
||||
}
|
||||
@@ -8,5 +8,5 @@ trait <lineMarker></lineMarker>B : A
|
||||
trait <lineMarker></lineMarker>C : B, A
|
||||
|
||||
class SomeClass() : C {
|
||||
override val <lineMarker descr="<b>internal</b> <b>open</b> <b>val</b> f: jet.Int <i>defined in</i> SomeClass<br/>overrides<br/><b>internal</b> <b>open</b> <b>val</b> f: jet.Int <i>defined in</i> A"></lineMarker>f: Int = 4
|
||||
override val <lineMarker descr="<b>internal</b> <b>open</b> <b>val</b> f: kotlin.Int <i>defined in</i> SomeClass<br/>overrides<br/><b>internal</b> <b>open</b> <b>val</b> f: kotlin.Int <i>defined in</i> A"></lineMarker>f: Int = 4
|
||||
}
|
||||
@@ -5,7 +5,7 @@ open class <lineMarker></lineMarker>A {
|
||||
|
||||
open class <lineMarker descr="<html><body>Is subclassed by<br> C</body></html>"></lineMarker>B:A(){
|
||||
override fun <lineMarker
|
||||
descr="<b>internal</b> <b>open</b> <b>fun</b> a(): jet.Unit <i>defined in</i> B<br/>overrides<br/><b>internal</b> <b>open</b> <b>fun</b> a(): jet.Unit <i>defined in</i> A"></lineMarker><lineMarker
|
||||
descr="<b>internal</b> <b>open</b> <b>fun</b> a(): kotlin.Unit <i>defined in</i> B<br/>overrides<br/><b>internal</b> <b>open</b> <b>fun</b> a(): kotlin.Unit <i>defined in</i> A"></lineMarker><lineMarker
|
||||
descr="<html><body>Is overridden in <br> C</body></html>"></lineMarker>a(){
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ class Test {
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 1
|
||||
// EXIST: { lookupString:"String", tailText:" (jet)" }
|
||||
// EXIST: { lookupString:"String", tailText:" (kotlin)" }
|
||||
// EXIST: IllegalStateException
|
||||
// EXIST: StringBuilder
|
||||
// EXIST_JAVA_ONLY: StringBuffer
|
||||
|
||||
@@ -3,7 +3,7 @@ class Test {
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// EXIST: { lookupString:"String", tailText:" (jet)" }
|
||||
// EXIST: { lookupString:"String", tailText:" (kotlin)" }
|
||||
// EXIST: IllegalStateException
|
||||
// EXIST: StringBuilder
|
||||
// EXIST_JAVA_ONLY: StringBuffer
|
||||
|
||||
@@ -13,7 +13,7 @@ class StrMore {
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 1
|
||||
// EXIST: { lookupString:"String", tailText:" (jet)" }
|
||||
// EXIST: { lookupString:"String", tailText:" (kotlin)" }
|
||||
// EXIST: StrSome
|
||||
// EXIST: StrMore
|
||||
// EXIST: StrInFun
|
||||
|
||||
@@ -4,4 +4,4 @@ fun some() {
|
||||
tes<caret>
|
||||
}
|
||||
|
||||
// EXIST: { lookupString:"test", itemText:"test(a: jet.Int)" }
|
||||
// EXIST: { lookupString:"test", itemText:"test(a: kotlin.Int)" }
|
||||
@@ -7,7 +7,7 @@ class SomeClass {
|
||||
// INVOCATION_COUNT: 1
|
||||
// EXIST: SomeClass
|
||||
// EXIST: SomeInternal
|
||||
// EXIST: { lookupString:"String", tailText:" (jet)" }
|
||||
// EXIST: { lookupString:"String", tailText:" (kotlin)" }
|
||||
// EXIST: IllegalStateException
|
||||
// EXIST: StringBuilder
|
||||
// EXIST_JAVA_ONLY: StringBuffer
|
||||
|
||||
@@ -7,7 +7,7 @@ class SomeClass {
|
||||
// INVOCATION_COUNT: 2
|
||||
// EXIST: SomeClass
|
||||
// EXIST: SomeInternal
|
||||
// EXIST: { lookupString:"String", tailText:" (jet)" }
|
||||
// EXIST: { lookupString:"String", tailText:" (kotlin)" }
|
||||
// EXIST: IllegalStateException
|
||||
// EXIST: StringBuilder
|
||||
// EXIST_JAVA_ONLY: StringBuffer
|
||||
|
||||
@@ -5,5 +5,5 @@ fun firstFun() {
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 0
|
||||
// EXIST: { lookupString:"Int", tailText:" (jet)" }
|
||||
// EXIST: { lookupString:"Int", tailText:" (kotlin)" }
|
||||
// ABSENT: { lookupString:"IntRef", tailText:" (kotlin.internal.Ref)" }
|
||||
|
||||
@@ -4,7 +4,7 @@ fun main(args: Array<String>) {
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// WITH_ORDER: 1
|
||||
// EXIST: { lookupString:"Array", tailText:" (jet)" }
|
||||
// EXIST: { lookupString:"Array", tailText:" (kotlin)" }
|
||||
// EXIST_JAVA_ONLY: { lookupString:"Array", tailText:" (java.sql)" }
|
||||
// EXIST_JAVA_ONLY: { lookupString:"ArrayList", tailText:"<E> (java.util)" }
|
||||
// EXIST_JS_ONLY: { lookupString:"ArrayList", tailText:" (java.util)" }
|
||||
|
||||
@@ -3,6 +3,6 @@ fun some(a: Double<caret>) {
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// WITH_ORDER: 1
|
||||
// EXIST: { lookupString:"Double", tailText:" (jet)" }
|
||||
// EXIST: { lookupString:"Double", tailText:" (kotlin)" }
|
||||
// EXIST_JAVA_ONLY: { lookupString:"Double", tailText:" (java.lang)" }
|
||||
// EXIST: { lookupString:"DoubleArray", tailText:" (jet)" }
|
||||
// EXIST: { lookupString:"DoubleArray", tailText:" (kotlin)" }
|
||||
|
||||
@@ -8,5 +8,5 @@ fun firstFun() {
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 1
|
||||
// EXIST: { lookupString:"toLinkedList", itemText:"toLinkedList()", tailText:" for jet.Iterable<T> in kotlin" }
|
||||
// EXIST: { lookupString:"toLinkedList", itemText:"toLinkedList()", tailText:" for kotlin.Iterable<T> in kotlin" }
|
||||
// NUMBER: 1
|
||||
|
||||
@@ -6,7 +6,7 @@ fun firstFun() {
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 1
|
||||
// EXIST: { lookupString:"PropertyMetadata", itemText:"PropertyMetadata", tailText:" (jet)" }
|
||||
// EXIST: { lookupString:"PropertyMetadataImpl", itemText:"PropertyMetadataImpl", tailText:" (jet)" }
|
||||
// EXIST: {"lookupString":"PropertyMetadata$$TImpl","tailText":" (jet)","typeText":"","itemText":"PropertyMetadata$$TImpl"}
|
||||
// EXIST: { lookupString:"PropertyMetadata", itemText:"PropertyMetadata", tailText:" (kotlin)" }
|
||||
// EXIST: { lookupString:"PropertyMetadataImpl", itemText:"PropertyMetadataImpl", tailText:" (kotlin)" }
|
||||
// EXIST: {"lookupString":"PropertyMetadata$$TImpl","tailText":" (kotlin)","typeText":"","itemText":"PropertyMetadata$$TImpl"}
|
||||
// NUMBER: 3
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Some
|
||||
fun <T> Some.filter(predicate : (T) -> jet.Boolean) = throw UnsupportedOperationException()
|
||||
fun <T> Some.filter(predicate : (T) -> Boolean) = throw UnsupportedOperationException()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
Some().fil<caret>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Some
|
||||
fun <T> Some.filter(predicate : (T) -> jet.Boolean) = throw UnsupportedOperationException()
|
||||
fun <T> Some.filter(predicate : (T) -> Boolean) = throw UnsupportedOperationException()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
Some().filter { <caret> }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
fun <T> jet.Array<T>.filter(predicate : (T) -> jet.Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
fun <T> Array<T>.filter(predicate : (T) -> Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
args.fil<caret>
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
fun <T> jet.Array<T>.filter(predicate : (T) -> jet.Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
fun <T> Array<T>.filter(predicate : (T) -> Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
args.filter {<caret>}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
fun <T> jet.Array<T>.filter(predicate : (T) -> jet.Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
fun <T> Array<T>.filter(predicate : (T) -> Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
args.fil<caret>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
fun <T> jet.Array<T>.filter(predicate : (T) -> jet.Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
fun <T> Array<T>.filter(predicate : (T) -> Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
args.filter { <caret> }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
fun <T> jet.Array<T>.filter(predicate : (T) -> jet.Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
fun <T> Array<T>.filter(predicate : (T) -> Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
|
||||
fun <T> jet.Array<T>.filterNot(predicate : (T) -> jet.Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
fun <T> Array<T>.filterNot(predicate : (T) -> Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
args.filter<caret> {it != ""}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
fun <T> jet.Array<T>.filter(predicate : (T) -> jet.Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
fun <T> Array<T>.filter(predicate : (T) -> Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
|
||||
fun <T> jet.Array<T>.filterNot(predicate : (T) -> jet.Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
fun <T> Array<T>.filterNot(predicate : (T) -> Boolean) : java.util.List<T> = throw UnsupportedOperationException()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
args.filterNot {<caret>it != ""}
|
||||
|
||||
@@ -4,4 +4,4 @@ fun foo(p : Any){
|
||||
var a : Foo<String> = <caret>
|
||||
}
|
||||
|
||||
// EXIST: { lookupString:"Foo", itemText:"Foo<jet.String>()" }
|
||||
// EXIST: { lookupString:"Foo", itemText:"Foo<kotlin.String>()" }
|
||||
|
||||
@@ -6,4 +6,4 @@ class Foo{
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: { lookupString:"this@foo", typeText:"jet.String" }
|
||||
// EXIST: { lookupString:"this@foo", typeText:"kotlin.String" }
|
||||
|
||||
@@ -2,4 +2,4 @@ fun String.foo(){
|
||||
val s : String = <caret>
|
||||
}
|
||||
|
||||
// EXIST: { lookupString:"this", typeText:"jet.String" }
|
||||
// EXIST: { lookupString:"this", typeText:"kotlin.String" }
|
||||
|
||||
@@ -20,7 +20,7 @@ t: T</td>
|
||||
<td style="white-space:nowrap;font-weight:bold;">
|
||||
)</td>
|
||||
<td style="white-space:nowrap;font-weight:bold;">
|
||||
: jet.Unit <b>
|
||||
: kotlin.Unit <b>
|
||||
where</b>
|
||||
E : java.io.Closeable</td>
|
||||
</tr>
|
||||
@@ -42,14 +42,14 @@ None of the following substitutions</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<font color=red>
|
||||
<b>
|
||||
MyList<in jet.Any></b>
|
||||
MyList<in kotlin.Any></b>
|
||||
</font>
|
||||
<b>
|
||||
,</b>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<b>
|
||||
jet.Any</b>
|
||||
kotlin.Any</b>
|
||||
</td>
|
||||
<td style="white-space:nowrap;">
|
||||
<b>
|
||||
@@ -69,14 +69,14 @@ jet.Any</b>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<b>
|
||||
MyList<in jet.Int></b>
|
||||
MyList<in kotlin.Int></b>
|
||||
<b>
|
||||
,</b>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<font color=red>
|
||||
<b>
|
||||
jet.Int</b>
|
||||
kotlin.Int</b>
|
||||
</font>
|
||||
</td>
|
||||
<td style="white-space:nowrap;">
|
||||
@@ -101,13 +101,13 @@ can be applied to</td>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<b>
|
||||
MyList<jet.Int></b>
|
||||
MyList<kotlin.Int></b>
|
||||
<b>
|
||||
,</b>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<b>
|
||||
jet.Any</b>
|
||||
kotlin.Any</b>
|
||||
</td>
|
||||
<td style="white-space:nowrap;">
|
||||
<b>
|
||||
|
||||
@@ -40,14 +40,14 @@ None of the following substitutions</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<font color=red>
|
||||
<b>
|
||||
MyList<in jet.Any></b>
|
||||
MyList<in kotlin.Any></b>
|
||||
</font>
|
||||
<b>
|
||||
,</b>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<b>
|
||||
jet.Any</b>
|
||||
kotlin.Any</b>
|
||||
</td>
|
||||
<td style="white-space:nowrap;">
|
||||
<b>
|
||||
@@ -67,14 +67,14 @@ jet.Any</b>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<b>
|
||||
MyList<in jet.Int></b>
|
||||
MyList<in kotlin.Int></b>
|
||||
<b>
|
||||
,</b>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<font color=red>
|
||||
<b>
|
||||
jet.Int</b>
|
||||
kotlin.Int</b>
|
||||
</font>
|
||||
</td>
|
||||
<td style="white-space:nowrap;">
|
||||
@@ -99,13 +99,13 @@ can be applied to</td>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<b>
|
||||
MyList<jet.Int></b>
|
||||
MyList<kotlin.Int></b>
|
||||
<b>
|
||||
,</b>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<b>
|
||||
jet.Any</b>
|
||||
kotlin.Any</b>
|
||||
</td>
|
||||
<td style="white-space:nowrap;">
|
||||
<b>
|
||||
|
||||
@@ -36,7 +36,7 @@ cannot be applied to</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<font color=red>
|
||||
<b>
|
||||
(jet.Int) → jet.Int</b>
|
||||
(kotlin.Int) → kotlin.Int</b>
|
||||
</font>
|
||||
</td>
|
||||
<td style="white-space:nowrap;">
|
||||
|
||||
@@ -6,7 +6,7 @@ Type inference failed. Expected type mismatch: <table>
|
||||
required: </td>
|
||||
<td>
|
||||
<b>
|
||||
jet.Int</b>
|
||||
kotlin.Int</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -15,7 +15,7 @@ found: </td>
|
||||
<td>
|
||||
<font color=red>
|
||||
<b>
|
||||
jet.Long</b>
|
||||
kotlin.Long</b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -6,7 +6,7 @@ Type inference failed. Expected type mismatch: <table>
|
||||
required: </td>
|
||||
<td>
|
||||
<b>
|
||||
jet.Byte</b>
|
||||
kotlin.Byte</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -15,7 +15,7 @@ found: </td>
|
||||
<td>
|
||||
<font color=red>
|
||||
<b>
|
||||
jet.Int</b>
|
||||
kotlin.Int</b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -12,11 +12,11 @@ fun</b>
|
||||
<td style="white-space:nowrap;font-weight:bold;">
|
||||
(</td>
|
||||
<td align="right" style="white-space:nowrap;font-weight:bold;">
|
||||
l: jet.List<T></td>
|
||||
l: kotlin.List<T></td>
|
||||
<td style="white-space:nowrap;font-weight:bold;">
|
||||
)</td>
|
||||
<td style="white-space:nowrap;font-weight:bold;">
|
||||
: jet.Unit</td>
|
||||
: kotlin.Unit</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="7" style="white-space:nowrap;">
|
||||
@@ -36,7 +36,7 @@ cannot be applied to</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<font color=red>
|
||||
<b>
|
||||
jet.Int</b>
|
||||
kotlin.Int</b>
|
||||
</font>
|
||||
</td>
|
||||
<td style="white-space:nowrap;">
|
||||
|
||||
@@ -16,11 +16,11 @@ fun</b>
|
||||
<td align="right" style="white-space:nowrap;font-weight:bold;">
|
||||
t: T,</td>
|
||||
<td align="right" style="white-space:nowrap;font-weight:bold;">
|
||||
l: jet.MutableList<T></td>
|
||||
l: kotlin.MutableList<T></td>
|
||||
<td style="white-space:nowrap;font-weight:bold;">
|
||||
)</td>
|
||||
<td style="white-space:nowrap;font-weight:bold;">
|
||||
: jet.Unit</td>
|
||||
: kotlin.Unit</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="8" style="white-space:nowrap;">
|
||||
@@ -40,14 +40,14 @@ None of the following substitutions</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<font color=red>
|
||||
<b>
|
||||
jet.String</b>
|
||||
kotlin.String</b>
|
||||
</font>
|
||||
<b>
|
||||
,</b>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<b>
|
||||
jet.MutableList<jet.String></b>
|
||||
kotlin.MutableList<kotlin.String></b>
|
||||
</td>
|
||||
<td style="white-space:nowrap;">
|
||||
<b>
|
||||
@@ -67,14 +67,14 @@ jet.MutableList<jet.String></b>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<b>
|
||||
jet.Int</b>
|
||||
kotlin.Int</b>
|
||||
<b>
|
||||
,</b>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<font color=red>
|
||||
<b>
|
||||
jet.MutableList<jet.Int></b>
|
||||
kotlin.MutableList<kotlin.Int></b>
|
||||
</font>
|
||||
</td>
|
||||
<td style="white-space:nowrap;">
|
||||
@@ -99,13 +99,13 @@ can be applied to</td>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<b>
|
||||
jet.Int</b>
|
||||
kotlin.Int</b>
|
||||
<b>
|
||||
,</b>
|
||||
</td>
|
||||
<td align="right" style="white-space:nowrap;">
|
||||
<b>
|
||||
jet.MutableList<jet.String></b>
|
||||
kotlin.MutableList<kotlin.String></b>
|
||||
</td>
|
||||
<td style="white-space:nowrap;">
|
||||
<b>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
<!-- renderCollectionOfTypes1 -->
|
||||
Expected 2 parameters of types jet.List<jet.Int>, java.util.ArrayList<jet.String>
|
||||
Expected 2 parameters of types kotlin.List<kotlin.Int>, java.util.ArrayList<kotlin.String>
|
||||
@@ -6,7 +6,7 @@ Type inference failed. Expected type mismatch: <table>
|
||||
required: </td>
|
||||
<td>
|
||||
<b>
|
||||
jet.String</b>
|
||||
kotlin.String</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -15,7 +15,7 @@ found: </td>
|
||||
<td>
|
||||
<font color=red>
|
||||
<b>
|
||||
jet.Int</b>
|
||||
kotlin.Int</b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -6,7 +6,7 @@ Type inference failed. Expected type mismatch: <table>
|
||||
required: </td>
|
||||
<td>
|
||||
<b>
|
||||
jet.List<jet.Int></b>
|
||||
kotlin.List<kotlin.Int></b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -15,7 +15,7 @@ found: </td>
|
||||
<td>
|
||||
<font color=red>
|
||||
<b>
|
||||
jet.Set<jet.Int></b>
|
||||
kotlin.Set<kotlin.Int></b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -6,7 +6,7 @@ Type inference failed. Expected type mismatch: <table>
|
||||
required: </td>
|
||||
<td>
|
||||
<b>
|
||||
jet.Set<jet.String></b>
|
||||
kotlin.Set<kotlin.String></b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -15,7 +15,7 @@ found: </td>
|
||||
<td>
|
||||
<font color=red>
|
||||
<b>
|
||||
jet.Set<jet.Int></b>
|
||||
kotlin.Set<kotlin.Int></b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -11,7 +11,7 @@ b.A<???></td>
|
||||
<td>
|
||||
Found:</td>
|
||||
<td>
|
||||
jet.Nothing?</td>
|
||||
kotlin.Nothing?</td>
|
||||
</tr>
|
||||
</table>
|
||||
</html>
|
||||
@@ -1,3 +1,3 @@
|
||||
<!-- upperBoundViolated1 -->
|
||||
Type parameter bound for T in fun <R, T : jet.List<R>> foo(r: R, list: T): jet.Unit
|
||||
is not satisfied: inferred type jet.Collection<jet.Int> is not a subtype of jet.List<jet.Int>
|
||||
Type parameter bound for T in fun <R, T : kotlin.List<R>> foo(r: R, list: T): kotlin.Unit
|
||||
is not satisfied: inferred type kotlin.Collection<kotlin.Int> is not a subtype of kotlin.List<kotlin.Int>
|
||||
@@ -1,3 +1,3 @@
|
||||
<!-- upperBoundViolated2 -->
|
||||
Type parameter bound for V in fun <V : U, U> bar(v: V, u: jet.MutableSet<U>): jet.MutableSet<U>
|
||||
is not satisfied: inferred type jet.Any is not a subtype of jet.String
|
||||
Type parameter bound for V in fun <V : U, U> bar(v: V, u: kotlin.MutableSet<U>): kotlin.MutableSet<U>
|
||||
is not satisfied: inferred type kotlin.Any is not a subtype of kotlin.String
|
||||
@@ -1,3 +1,3 @@
|
||||
<!-- upperBoundViolated3 -->
|
||||
Type parameter bound for T in fun <T : R, R : i.B> baz(t: T, r: R): jet.Unit where T : i.A
|
||||
Type parameter bound for T in fun <T : R, R : i.B> baz(t: T, r: R): kotlin.Unit where T : i.A
|
||||
is not satisfied: inferred type i.A is not a subtype of i.B
|
||||
@@ -1,3 +1,3 @@
|
||||
fun some(<caret>f: (Int) -> String) : String? = null
|
||||
|
||||
//INFO: <b>value-parameter</b> <b>val</b> f: (jet.Int) → jet.String <i>defined in</i> some
|
||||
//INFO: <b>value-parameter</b> <b>val</b> f: (kotlin.Int) → kotlin.String <i>defined in</i> some
|
||||
@@ -5,4 +5,4 @@ fun test() {
|
||||
}
|
||||
|
||||
|
||||
//INFO: <b>val</b> test: jet.String? <i>defined in</i> test
|
||||
//INFO: <b>val</b> test: kotlin.String? <i>defined in</i> test
|
||||
@@ -2,4 +2,4 @@ fun testing() {
|
||||
<caret>SomeClass<List<String>>()
|
||||
}
|
||||
|
||||
// INFO: <b>public</b> <b>constructor</b> SomeClass<T : jet.List<jet.Any?>?>() <i>defined in</i> SomeClass<br/>Java declaration:<br/>[light_idea_test_case] public class SomeClass<T extends java.util.List> extends Object
|
||||
// INFO: <b>public</b> <b>constructor</b> SomeClass<T : kotlin.List<kotlin.Any?>?>() <i>defined in</i> SomeClass<br/>Java declaration:<br/>[light_idea_test_case] public class SomeClass<T extends java.util.List> extends Object
|
||||
@@ -2,4 +2,4 @@ fun ktTest() {
|
||||
Test.<caret>foo("SomeTest")
|
||||
}
|
||||
|
||||
//INFO: <b>public</b> <b>open</b> <b>fun</b> foo(param: jet.String): jet.Array<out jet.Any> <i>defined in</i> Test<br/>Java declaration:<br/>Test...
|
||||
//INFO: <b>public</b> <b>open</b> <b>fun</b> foo(param: kotlin.String): kotlin.Array<out kotlin.Any> <i>defined in</i> Test<br/>Java declaration:<br/>Test...
|
||||
@@ -2,4 +2,4 @@ fun test() {
|
||||
listOf(1, 2, 4).<caret>filter { it > 0 }
|
||||
}
|
||||
|
||||
// INFO: jet.inline <b>public</b> <b>fun</b> <T> jet.Iterable<T>.filter(predicate: (T) → jet.Boolean): jet.List<T> <i>defined in</i> kotlin<br/><p>Returns a list containing all elements which match the given *predicate*<br/></p>
|
||||
// INFO: kotlin.inline <b>public</b> <b>fun</b> <T> kotlin.Iterable<T>.filter(predicate: (T) → kotlin.Boolean): kotlin.List<T> <i>defined in</i> kotlin<br/><p>Returns a list containing all elements which match the given *predicate*<br/></p>
|
||||
|
||||
@@ -12,4 +12,4 @@ package test
|
||||
*/
|
||||
fun <caret>testFun(first: String, second: Int) = 12
|
||||
|
||||
// INFO: <b>internal</b> <b>fun</b> testFun(first: jet.String, second: jet.Int): jet.Int <i>defined in</i> test<br/><p>Test function<br/><br/><br/><b>@param</b> - <i>first</i> - Some<br/><b>@param</b> - <i>second</i> - Other<br/></p>
|
||||
// INFO: <b>internal</b> <b>fun</b> testFun(first: kotlin.String, second: kotlin.Int): kotlin.Int <i>defined in</i> test<br/><p>Test function<br/><br/><br/><b>@param</b> - <i>first</i> - Some<br/><b>@param</b> - <i>second</i> - Other<br/></p>
|
||||
@@ -12,4 +12,4 @@ fun test() {
|
||||
<caret>testMethod(1, "value")
|
||||
}
|
||||
|
||||
// INFO: <b>internal</b> <b>fun</b> testMethod(a: jet.Int, b: jet.String): jet.Unit <i>defined in</i> root package<br/><p>Some documentation<br/><br/><b>@param</b> - <i>a</i> - Some int<br/><b>@param</b> - <i>b</i>: String<br/></p>
|
||||
// INFO: <b>internal</b> <b>fun</b> testMethod(a: kotlin.Int, b: kotlin.String): kotlin.Unit <i>defined in</i> root package<br/><p>Some documentation<br/><br/><b>@param</b> - <i>a</i> - Some int<br/><b>@param</b> - <i>b</i>: String<br/></p>
|
||||
@@ -8,4 +8,4 @@ class Testing {
|
||||
}
|
||||
}
|
||||
|
||||
// INFO: <b>internal</b> <b>fun</b> foo(bar: jet.Int): jet.Unit <i>defined in</i> some<br/><p>KDoc foo<br/></p>
|
||||
// INFO: <b>internal</b> <b>fun</b> foo(bar: kotlin.Int): kotlin.Unit <i>defined in</i> some<br/><p>KDoc foo<br/></p>
|
||||
@@ -3,7 +3,7 @@ fun test() {
|
||||
MyClass().<warning descr="'fun test2()' is deprecated. Use A instead">test2</warning>()
|
||||
MyClass.<warning descr="'fun test3()' is deprecated. Use A instead">test3</warning>()
|
||||
|
||||
<warning descr="'fun test4(x: jet.Int, y: jet.Int)' is deprecated. Use A instead">test4</warning>(1, 2)
|
||||
<warning descr="'fun test4(x: kotlin.Int, y: kotlin.Int)' is deprecated. Use A instead">test4</warning>(1, 2)
|
||||
}
|
||||
|
||||
deprecated("Use A instead") fun test1() { }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fun test(n: Int): String {
|
||||
val <caret>res: jet.String = if (n == 1) "one" else "two"
|
||||
val <caret>res: String = if (n == 1) "one" else "two"
|
||||
|
||||
return res
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
fun test(n: Int): String {
|
||||
val res: jet.String
|
||||
val res: String
|
||||
<caret>if (n == 1) res = "one" else res = "two"
|
||||
|
||||
return res
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fun test(n: Int): String? {
|
||||
val res<caret>: jet.String? = when(n) {
|
||||
val res<caret>: String? = when(n) {
|
||||
1 -> "one"
|
||||
2 -> "two"
|
||||
else -> null
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
fun test(n: Int): String? {
|
||||
val res: jet.String?
|
||||
val res: String?
|
||||
<caret>when(n) {
|
||||
1 -> res = "one"
|
||||
2 -> res = "two"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
class Owner {
|
||||
fun <caret>f(p: jet.Int): jet.String {}
|
||||
fun <caret>f(p: kotlin.Int): kotlin.String {}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
class Owner {
|
||||
}
|
||||
|
||||
fun Owner.f(p: jet.Int): jet.String {
|
||||
fun Owner.f(p: kotlin.Int): kotlin.String {
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
fun foo(n: Int) {
|
||||
<caret>val x: jet.String?
|
||||
<caret>val x: String?
|
||||
x = ""
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
fun foo(n: Int) {
|
||||
<caret>val x: jet.String? = ""
|
||||
<caret>val x: String? = ""
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
fun foo(n: Int) {
|
||||
val x: jet.String?<caret>
|
||||
val x: String?<caret>
|
||||
x = ""
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
fun foo(n: Int) {
|
||||
<caret>val x: jet.String? = ""
|
||||
<caret>val x: String? = ""
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
fun foo(n: Int) {
|
||||
<caret>val x: jet.String? = ""
|
||||
<caret>val x: String? = ""
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
fun foo(n: Int) {
|
||||
<caret>val x: jet.String?
|
||||
<caret>val x: String?
|
||||
x = ""
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
fun foo(n: Int) {
|
||||
<caret>var x: jet.String? = ""
|
||||
<caret>var x: String? = ""
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
fun foo(n: Int) {
|
||||
<caret>var x: jet.String?
|
||||
<caret>var x: String?
|
||||
x = ""
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Specify type explicitly" "true"
|
||||
import java.sql
|
||||
|
||||
fun getEntry() : Map.Entry<jet.Array<String>, java.sql.Array> {
|
||||
fun getEntry() : Map.Entry<kotlin.Array<String>, java.sql.Array> {
|
||||
}
|
||||
|
||||
val x: Map.Entry<Array<String>, sql.Array> = getEntry()
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Specify type explicitly" "true"
|
||||
class String {}
|
||||
|
||||
val x: jet.String = ""
|
||||
val x: kotlin.String = ""
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Specify type explicitly" "true"
|
||||
fun getEntry() : Map.Entry<jet.Array<String>, java.sql.Array> {
|
||||
fun getEntry() : Map.Entry<kotlin.Array<String>, java.sql.Array> {
|
||||
}
|
||||
|
||||
val <caret>x = getEntry()
|
||||
@@ -4,19 +4,19 @@
|
||||
package testData.libraries
|
||||
|
||||
[[public abstract class ClassWithAbstractAndOpenMembers() {
|
||||
[public abstract val abstractVal: jet.String]
|
||||
[public abstract val abstractVal: kotlin.String]
|
||||
|
||||
[public abstract var abstractVar: jet.String]
|
||||
[public abstract var abstractVar: kotlin.String]
|
||||
|
||||
[public open val openVal: jet.String] /* compiled code */
|
||||
[public open val openVal: kotlin.String] /* compiled code */
|
||||
|
||||
[public open val openValWithGetter: jet.String] /* compiled code */
|
||||
[public open val openValWithGetter: kotlin.String] /* compiled code */
|
||||
|
||||
[public open var openVar: jet.String] /* compiled code */
|
||||
[public open var openVar: kotlin.String] /* compiled code */
|
||||
|
||||
[public open var openVarWithGetter: jet.String] /* compiled code */
|
||||
[public open var openVarWithGetter: kotlin.String] /* compiled code */
|
||||
|
||||
[public abstract fun abstractFun(): jet.Unit]
|
||||
[public abstract fun abstractFun(): kotlin.Unit]
|
||||
|
||||
[public open fun openFun(): jet.Unit { /* compiled code */ }]
|
||||
[public open fun openFun(): kotlin.Unit { /* compiled code */ }]
|
||||
}]]
|
||||
@@ -3,6 +3,6 @@
|
||||
|
||||
package testData.libraries
|
||||
|
||||
[[public final class ClassWithConstructor(a: jet.String, b: jet.Any) {
|
||||
[internal final val a: jet.String] /* compiled code */
|
||||
[[public final class ClassWithConstructor(a: kotlin.String, b: kotlin.Any) {
|
||||
[internal final val a: kotlin.String] /* compiled code */
|
||||
}]]
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
package testData.libraries
|
||||
|
||||
[[public final enum class Color(rgb: jet.Int) : jet.Enum<testData.libraries.Color> {
|
||||
[internal final val rgb: jet.Int] /* compiled code */
|
||||
[[public final enum class Color(rgb: kotlin.Int) : kotlin.Enum<testData.libraries.Color> {
|
||||
[internal final val rgb: kotlin.Int] /* compiled code */
|
||||
|
||||
[[BLUE]]
|
||||
|
||||
|
||||
@@ -3,36 +3,36 @@
|
||||
|
||||
package testData.libraries
|
||||
|
||||
[public val globalVal: testData.libraries.Pair<jet.Int, jet.String>] /* compiled code */
|
||||
[public val globalVal: testData.libraries.Pair<kotlin.Int, kotlin.String>] /* compiled code */
|
||||
|
||||
[public val globalValWithGetter: jet.Long] /* compiled code */
|
||||
[public val globalValWithGetter: kotlin.Long] /* compiled code */
|
||||
|
||||
[public val jet.Int.exProp: jet.Int] /* compiled code */
|
||||
[public val kotlin.Int.exProp: kotlin.Int] /* compiled code */
|
||||
|
||||
[public val jet.String.exProp: jet.String] /* compiled code */
|
||||
[public val kotlin.String.exProp: kotlin.String] /* compiled code */
|
||||
|
||||
[public val <T> testData.libraries.Pair<T, T>.exProp: jet.String] /* compiled code */
|
||||
[public val <T> testData.libraries.Pair<T, T>.exProp: kotlin.String] /* compiled code */
|
||||
|
||||
[public fun <T : jet.CharSequence> funWithTypeParam(t: T): jet.Unit { /* compiled code */ }]
|
||||
[public fun <T : kotlin.CharSequence> funWithTypeParam(t: T): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun <T : jet.Number> funWithTypeParam(t: T): jet.Unit { /* compiled code */ }]
|
||||
[public fun <T : kotlin.Number> funWithTypeParam(t: T): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun func(): jet.Unit { /* compiled code */ }]
|
||||
[public fun func(): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun func(cs: jet.CharSequence): jet.Unit { /* compiled code */ }]
|
||||
[public fun func(cs: kotlin.CharSequence): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun func(a: jet.Int, b: jet.Int): jet.Unit { /* compiled code */ }]
|
||||
[public fun func(a: kotlin.Int, b: kotlin.Int): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun func(a: jet.Int, b: jet.String = /* compiled code */): jet.Unit { /* compiled code */ }]
|
||||
[public fun func(a: kotlin.Int, b: kotlin.String = /* compiled code */): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun func(str: jet.String): jet.Unit { /* compiled code */ }]
|
||||
[public fun func(str: kotlin.String): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun <T> genericFunc(): T { /* compiled code */ }]
|
||||
|
||||
[public fun main(args: jet.Array<jet.String>): jet.Unit { /* compiled code */ }]
|
||||
[public fun main(args: kotlin.Array<kotlin.String>): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun processDouble(d: jet.Double): jet.Unit { /* compiled code */ }]
|
||||
[public fun processDouble(d: kotlin.Double): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun processDouble(d: testData.libraries.Double): jet.Unit { /* compiled code */ }]
|
||||
[public fun processDouble(d: testData.libraries.Double): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[jet.inline public fun <T> T.filter(predicate: (T) -> jet.Boolean): T? { /* compiled code */ }]
|
||||
[kotlin.inline public fun <T> T.filter(predicate: (T) -> kotlin.Boolean): T? { /* compiled code */ }]
|
||||
@@ -4,5 +4,5 @@
|
||||
package testData.libraries
|
||||
|
||||
[[public object NamedObject {
|
||||
[public final val objectMember: jet.Int] /* compiled code */
|
||||
[public final val objectMember: kotlin.Int] /* compiled code */
|
||||
}]]
|
||||
@@ -5,12 +5,12 @@ package testData.libraries
|
||||
|
||||
[[public final class WithInnerAndObject() {
|
||||
[[public class object {
|
||||
[internal final fun foo(): jet.Unit { /* compiled code */ }]
|
||||
[internal final fun foo(): kotlin.Unit { /* compiled code */ }]
|
||||
}]]
|
||||
|
||||
[[internal final class MyInner() {
|
||||
[internal trait MyInnerInner {
|
||||
[internal abstract fun innerInnerMethod(): jet.Unit]
|
||||
[internal abstract fun innerInnerMethod(): kotlin.Unit]
|
||||
}]
|
||||
}]]
|
||||
}]]
|
||||
@@ -1,6 +1,6 @@
|
||||
package testData.libraries
|
||||
|
||||
import jet as gogland
|
||||
import kotlin as gogland
|
||||
|
||||
public fun func(str : gogland.String) {
|
||||
}
|
||||
@@ -111,7 +111,7 @@ public class Double
|
||||
|
||||
public fun processDouble(d: Double) {}
|
||||
|
||||
public fun processDouble(d: jet.Double) {}
|
||||
public fun processDouble(d: kotlin.Double) {}
|
||||
|
||||
|
||||
public fun <T: CharSequence> funWithTypeParam(t: T) {
|
||||
|
||||
@@ -10,4 +10,4 @@ fun foo() {
|
||||
//
|
||||
//public fun <2>processDouble(d: Double) {}
|
||||
//
|
||||
//public fun <1>processDouble(d: jet.Double) {}
|
||||
//public fun <1>processDouble(d: kotlin.Double) {}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add '<*>'" "true"
|
||||
public fun foo(a: Any) {
|
||||
a is jet.List<*>
|
||||
a is kotlin.List<*>
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add '<*, *>'" "true"
|
||||
public fun foo(a: Any) {
|
||||
a is jet.Map<*, *>
|
||||
a is kotlin.Map<*, *>
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add '<*>'" "true"
|
||||
public fun foo(a: Any) {
|
||||
a is jet.List<caret>
|
||||
a is kotlin.List<caret>
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add '<*, *>'" "true"
|
||||
public fun foo(a: Any) {
|
||||
a is jet.Map<caret>
|
||||
a is kotlin.Map<caret>
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Add '<*>'" "true"
|
||||
public fun foo(a: Any) {
|
||||
when (a) {
|
||||
is jet.List<*> -> {}
|
||||
is kotlin.List<*> -> {}
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Add '<*, *>'" "true"
|
||||
public fun foo(a: Any) {
|
||||
when (a) {
|
||||
is jet.Map<*, *> -> {}
|
||||
is kotlin.Map<*, *> -> {}
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Add '<*>'" "true"
|
||||
public fun foo(a: Any) {
|
||||
when (a) {
|
||||
is jet.List<caret> -> {}
|
||||
is kotlin.List<caret> -> {}
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Add '<*, *>'" "true"
|
||||
public fun foo(a: Any) {
|
||||
when (a) {
|
||||
is jet.Map<caret> -> {}
|
||||
is kotlin.Map<caret> -> {}
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Import" "true"
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> jet.String.minus(str: jet.String): jet.String <i>defined in</i> h</li><li><b>internal</b> <b>fun</b> jet.String.minus(i: java.lang.Integer): jet.String <i>defined in</i> h</li></ul></html>
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> kotlin.String.minus(str: kotlin.String): kotlin.String <i>defined in</i> h</li><li><b>internal</b> <b>fun</b> kotlin.String.minus(i: java.lang.Integer): kotlin.String <i>defined in</i> h</li></ul></html>
|
||||
|
||||
package h
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Import" "true"
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> jet.String.minus(str: jet.String): jet.String <i>defined in</i> h</li><li><b>internal</b> <b>fun</b> jet.String.minus(i: java.lang.Integer): jet.String <i>defined in</i> h</li></ul></html>
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> kotlin.String.minus(str: kotlin.String): kotlin.String <i>defined in</i> h</li><li><b>internal</b> <b>fun</b> kotlin.String.minus(i: java.lang.Integer): kotlin.String <i>defined in</i> h</li></ul></html>
|
||||
|
||||
package h
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Import" "true"
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>public</b> <b>fun</b> jet.String?.plus(other: jet.Any?): jet.String <i>defined in</i> jet</li></ul></html>
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>public</b> <b>fun</b> kotlin.String?.plus(other: kotlin.Any?): kotlin.String <i>defined in</i> kotlin</li></ul></html>
|
||||
|
||||
package h
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Import" "true"
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>public</b> <b>fun</b> jet.String?.plus(other: jet.Any?): jet.String <i>defined in</i> jet</li></ul></html>
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>public</b> <b>fun</b> kotlin.String?.plus(other: kotlin.Any?): kotlin.String <i>defined in</i> kotlin</li></ul></html>
|
||||
|
||||
package h
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Import" "true"
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> h.A.plus(): jet.Int <i>defined in</i> h</li><li><b>public</b> <b>fun</b> jet.String?.plus(other: jet.Any?): jet.String <i>defined in</i> jet</li></ul></html>
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> h.A.plus(): kotlin.Int <i>defined in</i> h</li><li><b>public</b> <b>fun</b> kotlin.String?.plus(other: kotlin.Any?): kotlin.String <i>defined in</i> kotlin</li></ul></html>
|
||||
|
||||
package h
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Import" "true"
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> h.A.plus(): jet.Int <i>defined in</i> h</li><li><b>public</b> <b>fun</b> jet.String?.plus(other: jet.Any?): jet.String <i>defined in</i> jet</li></ul></html>
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> h.A.plus(): kotlin.Int <i>defined in</i> h</li><li><b>public</b> <b>fun</b> kotlin.String?.plus(other: kotlin.Any?): kotlin.String <i>defined in</i> kotlin</li></ul></html>
|
||||
|
||||
package h
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddFunctionParametersFix" "false"
|
||||
//ERROR: Too many arguments for internal final fun component1(): jet.Int defined in Data
|
||||
//ERROR: Too many arguments for internal final fun component1(): kotlin.Int defined in Data
|
||||
|
||||
data class Data(val i: Int) {}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddFunctionParametersFix" "false"
|
||||
// ERROR: Too many arguments for public open fun equals(other: jet.Any?): jet.Boolean defined in jet.Any
|
||||
// ERROR: Too many arguments for public open fun equals(other: kotlin.Any?): kotlin.Boolean defined in kotlin.Any
|
||||
|
||||
fun f(d: Any) {
|
||||
d.equals("a", <caret>"b")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddFunctionParametersFix" "false"
|
||||
// ERROR: Too many arguments for public open fun equals(other: jet.Any?): jet.Boolean defined in java.lang.Object
|
||||
// ERROR: Too many arguments for public open fun equals(other: kotlin.Any?): kotlin.Boolean defined in java.lang.Object
|
||||
|
||||
fun f(d: java.lang.Object) {
|
||||
d.equals("a", <caret>"b")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddFunctionParametersFix" "false"
|
||||
//ERROR: Too many arguments for internal final fun component1(): jet.Int defined in Data
|
||||
//ERROR: Too many arguments for internal final fun component1(): kotlin.Int defined in Data
|
||||
|
||||
data class Data(val i: Int) {}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Change function signature..." "true"
|
||||
// ERROR: <html>Class 'B' must be declared abstract or implement abstract member<br/><b>internal</b> <b>abstract</b> <b>fun</b> f(a: jet.String): jet.Unit <i>defined in</i> A</html>
|
||||
// ERROR: <html>Class 'B' must be declared abstract or implement abstract member<br/><b>internal</b> <b>abstract</b> <b>fun</b> f(a: kotlin.String): kotlin.Unit <i>defined in</i> A</html>
|
||||
trait A {
|
||||
fun f(a: Int)
|
||||
fun f(a: String)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Change function signature to 'override fun f(a: Int): Int'" "true"
|
||||
// ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>jet.Int</td></tr><tr><td>Found:</td><td>jet.String</td></tr></table></html>
|
||||
// ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>kotlin.Int</td></tr><tr><td>Found:</td><td>kotlin.String</td></tr></table></html>
|
||||
open class A {
|
||||
open fun f(a: Int): Int = 0
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user