Rename platform to header.
This commit is contained in:
+11
-11
@@ -2,28 +2,28 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
<!WRONG_MODIFIER_TARGET!>platform<!> typealias Foo = String
|
||||
<!WRONG_MODIFIER_TARGET!>header<!> typealias Foo = String
|
||||
|
||||
class Outer <!WRONG_MODIFIER_TARGET!>platform<!> constructor() {
|
||||
platform class Nested
|
||||
class Outer <!WRONG_MODIFIER_TARGET!>header<!> constructor() {
|
||||
header class Nested
|
||||
|
||||
<!WRONG_MODIFIER_TARGET!>platform<!> init {}
|
||||
<!WRONG_MODIFIER_TARGET!>header<!> init {}
|
||||
|
||||
<!NON_ABSTRACT_FUNCTION_WITH_NO_BODY!><!WRONG_MODIFIER_TARGET!>platform<!> fun foo()<!>
|
||||
<!WRONG_MODIFIER_TARGET!>platform<!> val bar: Int
|
||||
<!NON_ABSTRACT_FUNCTION_WITH_NO_BODY!><!WRONG_MODIFIER_TARGET!>header<!> fun foo()<!>
|
||||
<!WRONG_MODIFIER_TARGET!>header<!> val bar: Int
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
<!WRONG_MODIFIER_TARGET!>platform<!> fun localFun()
|
||||
<!WRONG_MODIFIER_TARGET!>platform<!> var <!UNUSED_VARIABLE!>x<!> = 42
|
||||
<!WRONG_MODIFIER_TARGET!>platform<!> class Bar
|
||||
<!WRONG_MODIFIER_TARGET!>header<!> fun localFun()
|
||||
<!WRONG_MODIFIER_TARGET!>header<!> var <!UNUSED_VARIABLE!>x<!> = 42
|
||||
<!WRONG_MODIFIER_TARGET!>header<!> class Bar
|
||||
}
|
||||
|
||||
// MODULE: m2-jvm
|
||||
// FILE: jvm.kt
|
||||
|
||||
class Outer impl constructor() {
|
||||
<!PLATFORM_DEFINITION_WITHOUT_DECLARATION!>impl<!> class Nested
|
||||
<!IMPLEMENTATION_WITHOUT_HEADER!>impl<!> class Nested
|
||||
|
||||
<!WRONG_MODIFIER_TARGET!>impl<!> init {}
|
||||
}
|
||||
@@ -31,5 +31,5 @@ class Outer impl constructor() {
|
||||
fun foo() {
|
||||
<!WRONG_MODIFIER_TARGET!>impl<!> fun localFun() {}
|
||||
<!WRONG_MODIFIER_TARGET!>impl<!> var <!UNUSED_VARIABLE!>x<!> = 42
|
||||
<!PLATFORM_DEFINITION_WITHOUT_DECLARATION, WRONG_MODIFIER_TARGET!>impl<!> class Bar
|
||||
<!IMPLEMENTATION_WITHOUT_HEADER, WRONG_MODIFIER_TARGET!>impl<!> class Bar
|
||||
}
|
||||
|
||||
+2
-2
@@ -7,11 +7,11 @@ public final class Outer {
|
||||
public constructor Outer()
|
||||
public final val bar: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final platform fun foo(): kotlin.Unit
|
||||
public final header fun foo(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
public final platform class Nested {
|
||||
public final header class Nested {
|
||||
public constructor 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
|
||||
|
||||
+5
-5
@@ -2,15 +2,15 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
platform interface Interface
|
||||
header interface Interface
|
||||
|
||||
platform annotation class Anno(val prop: String)
|
||||
header annotation class Anno(val prop: String)
|
||||
|
||||
platform object Object
|
||||
header object Object
|
||||
|
||||
platform class Class
|
||||
header class Class
|
||||
|
||||
platform enum class En { ENTRY }
|
||||
header enum class En { ENTRY }
|
||||
|
||||
// MODULE: m2-jvm(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
// -- Module: <m1-common> --
|
||||
package
|
||||
|
||||
public final platform annotation class Anno : kotlin.Annotation {
|
||||
public final header annotation class Anno : kotlin.Annotation {
|
||||
public constructor Anno(/*0*/ prop: kotlin.String)
|
||||
public final val prop: kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -9,14 +9,14 @@ public final platform annotation class Anno : kotlin.Annotation {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final platform class Class {
|
||||
public final header class Class {
|
||||
public constructor Class()
|
||||
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 platform enum class En : kotlin.Enum<En> {
|
||||
public final header enum class En : kotlin.Enum<En> {
|
||||
enum entry ENTRY
|
||||
|
||||
private constructor En()
|
||||
@@ -33,13 +33,13 @@ public final platform enum class En : kotlin.Enum<En> {
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<En>
|
||||
}
|
||||
|
||||
public platform interface Interface {
|
||||
public header interface Interface {
|
||||
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 platform object Object {
|
||||
public header object Object {
|
||||
private constructor Object()
|
||||
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
+4
-4
@@ -1,14 +1,14 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
platform open class A {
|
||||
header open class A {
|
||||
constructor(s: String)
|
||||
|
||||
constructor(n: Number) : <!PLATFORM_CLASS_CONSTRUCTOR_DELEGATION_CALL!>this<!>("A")
|
||||
constructor(n: Number) : <!HEADER_CLASS_CONSTRUCTOR_DELEGATION_CALL!>this<!>("A")
|
||||
}
|
||||
|
||||
platform class B : A {
|
||||
header class B : A {
|
||||
constructor(i: Int)
|
||||
|
||||
constructor() : <!PLATFORM_CLASS_CONSTRUCTOR_DELEGATION_CALL!>super<!>("B")
|
||||
constructor() : <!HEADER_CLASS_CONSTRUCTOR_DELEGATION_CALL!>super<!>("B")
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -1,6 +1,6 @@
|
||||
package
|
||||
|
||||
public open platform class A {
|
||||
public open header class A {
|
||||
public constructor A(/*0*/ n: kotlin.Number)
|
||||
public constructor A(/*0*/ s: kotlin.String)
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -8,7 +8,7 @@ public open platform class A {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final platform class B : A {
|
||||
public final header class B : A {
|
||||
public constructor B()
|
||||
public constructor B(/*0*/ i: kotlin.Int)
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
|
||||
Vendored
+11
-11
@@ -1,18 +1,18 @@
|
||||
// !DIAGNOSTICS: -PLATFORM_DEFINITION_WITHOUT_DECLARATION
|
||||
// !DIAGNOSTICS: -IMPLEMENTATION_WITHOUT_HEADER
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
platform class C1
|
||||
platform class C2<A>
|
||||
platform class C3<B>
|
||||
platform class C4<D, E>
|
||||
platform class C5<F, G>
|
||||
platform class C6<H>
|
||||
platform class C7<I>
|
||||
platform class C8<J>
|
||||
platform class C9<K>
|
||||
platform class C10<L>
|
||||
header class C1
|
||||
header class C2<A>
|
||||
header class C3<B>
|
||||
header class C4<D, E>
|
||||
header class C5<F, G>
|
||||
header class C6<H>
|
||||
header class C7<I>
|
||||
header class C8<J>
|
||||
header class C9<K>
|
||||
header class C10<L>
|
||||
|
||||
// MODULE: m2-jvm(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
Vendored
+10
-10
@@ -1,70 +1,70 @@
|
||||
// -- Module: <m1-common> --
|
||||
package
|
||||
|
||||
public final platform class C1 {
|
||||
public final header class C1 {
|
||||
public constructor C1()
|
||||
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 platform class C10</*0*/ L> {
|
||||
public final header class C10</*0*/ L> {
|
||||
public constructor C10</*0*/ L>()
|
||||
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 platform class C2</*0*/ A> {
|
||||
public final header class C2</*0*/ A> {
|
||||
public constructor C2</*0*/ 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 platform class C3</*0*/ B> {
|
||||
public final header class C3</*0*/ B> {
|
||||
public constructor C3</*0*/ B>()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final platform class C4</*0*/ D, /*1*/ E> {
|
||||
public final header class C4</*0*/ D, /*1*/ E> {
|
||||
public constructor C4</*0*/ D, /*1*/ E>()
|
||||
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 platform class C5</*0*/ F, /*1*/ G> {
|
||||
public final header class C5</*0*/ F, /*1*/ G> {
|
||||
public constructor C5</*0*/ F, /*1*/ G>()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final platform class C6</*0*/ H> {
|
||||
public final header class C6</*0*/ H> {
|
||||
public constructor C6</*0*/ H>()
|
||||
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 platform class C7</*0*/ I> {
|
||||
public final header class C7</*0*/ I> {
|
||||
public constructor C7</*0*/ I>()
|
||||
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 platform class C8</*0*/ J> {
|
||||
public final header class C8</*0*/ J> {
|
||||
public constructor C8</*0*/ J>()
|
||||
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 platform class C9</*0*/ K> {
|
||||
public final header class C9</*0*/ K> {
|
||||
public constructor C9</*0*/ K>()
|
||||
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,7 +1,7 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
platform class Foo {
|
||||
header class Foo {
|
||||
val foo: String
|
||||
|
||||
fun bar(x: Int): Int
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
// -- Module: <m1-common> --
|
||||
package
|
||||
|
||||
public final platform class Foo {
|
||||
public final header class Foo {
|
||||
public constructor Foo()
|
||||
public final val foo: kotlin.String
|
||||
public final platform fun bar(/*0*/ x: kotlin.Int): kotlin.Int
|
||||
public final header fun bar(/*0*/ x: kotlin.Int): 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
+10
-10
@@ -1,29 +1,29 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
platform class Foo(
|
||||
<!PLATFORM_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER!>val constructorProperty: String<!>,
|
||||
header class Foo(
|
||||
<!HEADER_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER!>val constructorProperty: String<!>,
|
||||
constructorParameter: String
|
||||
) {
|
||||
<!PLATFORM_DECLARATION_WITH_BODY!>init<!> {
|
||||
<!HEADER_DECLARATION_WITH_BODY!>init<!> {
|
||||
<!UNUSED_EXPRESSION, UNUSED_EXPRESSION!>"no"<!>
|
||||
}
|
||||
|
||||
<!PLATFORM_DECLARATION_WITH_BODY!>constructor(s: String)<!> {
|
||||
<!HEADER_DECLARATION_WITH_BODY!>constructor(s: String)<!> {
|
||||
<!UNUSED_EXPRESSION!>"no"<!>
|
||||
}
|
||||
|
||||
constructor() : <!PLATFORM_CLASS_CONSTRUCTOR_DELEGATION_CALL!>this<!>("no")
|
||||
constructor() : <!HEADER_CLASS_CONSTRUCTOR_DELEGATION_CALL!>this<!>("no")
|
||||
|
||||
val prop: String = <!PLATFORM_PROPERTY_INITIALIZER!>"no"<!>
|
||||
val prop: String = <!HEADER_PROPERTY_INITIALIZER!>"no"<!>
|
||||
|
||||
var getSet: String
|
||||
<!PLATFORM_DECLARATION_WITH_BODY!>get()<!> = "no"
|
||||
<!PLATFORM_DECLARATION_WITH_BODY!>set(value)<!> {}
|
||||
<!HEADER_DECLARATION_WITH_BODY!>get()<!> = "no"
|
||||
<!HEADER_DECLARATION_WITH_BODY!>set(value)<!> {}
|
||||
|
||||
fun defaultArg(<!PLATFORM_DECLARATION_WITH_DEFAULT_PARAMETER!>value: String = "no"<!>)
|
||||
fun defaultArg(<!HEADER_DECLARATION_WITH_DEFAULT_PARAMETER!>value: String = "no"<!>)
|
||||
|
||||
<!PLATFORM_DECLARATION_WITH_BODY!>fun functionWithBody(x: Int): Int<!> {
|
||||
<!HEADER_DECLARATION_WITH_BODY!>fun functionWithBody(x: Int): Int<!> {
|
||||
return x + 1
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+3
-3
@@ -1,15 +1,15 @@
|
||||
package
|
||||
|
||||
public final platform class Foo {
|
||||
public final header class Foo {
|
||||
public constructor Foo()
|
||||
public constructor Foo(/*0*/ s: kotlin.String)
|
||||
public constructor Foo(/*0*/ constructorProperty: kotlin.String, /*1*/ constructorParameter: kotlin.String)
|
||||
public final val constructorProperty: kotlin.String
|
||||
public final var getSet: kotlin.String
|
||||
public final val prop: kotlin.String = "no"
|
||||
public final platform fun defaultArg(/*0*/ value: kotlin.String = ...): kotlin.Unit
|
||||
public final header fun defaultArg(/*0*/ value: kotlin.String = ...): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final platform fun functionWithBody(/*0*/ x: kotlin.Int): kotlin.Int
|
||||
public final header fun functionWithBody(/*0*/ x: kotlin.Int): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
platform class Foo
|
||||
header class Foo
|
||||
|
||||
// MODULE: m2-jvm(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// -- Module: <m1-common> --
|
||||
package
|
||||
|
||||
public final platform class Foo {
|
||||
public final header 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
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ interface I
|
||||
open class C
|
||||
interface J
|
||||
|
||||
platform class Foo : I, C, J
|
||||
header class Foo : I, C, J
|
||||
|
||||
// MODULE: m2-jvm(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ public open class C {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final platform class Foo : I, C, J {
|
||||
public final header class Foo : I, C, J {
|
||||
public constructor Foo()
|
||||
public open override /*3*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*3*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
platform fun foo(x: Int): Int
|
||||
header fun foo(x: Int): Int
|
||||
|
||||
fun callFromCommonCode(x: Int) = foo(x)
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
package
|
||||
|
||||
public fun callFromCommonCode(/*0*/ x: kotlin.Int): kotlin.Int
|
||||
public platform fun foo(/*0*/ x: kotlin.Int): kotlin.Int
|
||||
public header fun foo(/*0*/ x: kotlin.Int): kotlin.Int
|
||||
|
||||
|
||||
// -- Module: <m2-jvm> --
|
||||
|
||||
Vendored
+3
-3
@@ -2,7 +2,7 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
<!CONFLICTING_OVERLOADS!>platform fun foo()<!>
|
||||
<!CONFLICTING_OVERLOADS!>platform fun foo()<!>
|
||||
<!CONFLICTING_OVERLOADS!>header fun foo()<!>
|
||||
<!CONFLICTING_OVERLOADS!>header fun foo()<!>
|
||||
|
||||
platform fun foo(x: Int)
|
||||
header fun foo(x: Int)
|
||||
|
||||
Vendored
+3
-3
@@ -1,5 +1,5 @@
|
||||
package
|
||||
|
||||
public platform fun foo(): kotlin.Unit
|
||||
public platform fun foo(): kotlin.Unit
|
||||
public platform fun foo(/*0*/ x: kotlin.Int): kotlin.Unit
|
||||
public header fun foo(): kotlin.Unit
|
||||
public header fun foo(): kotlin.Unit
|
||||
public header fun foo(/*0*/ x: kotlin.Int): kotlin.Unit
|
||||
|
||||
Vendored
+1
-1
@@ -2,7 +2,7 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
platform fun foo()
|
||||
header fun foo()
|
||||
|
||||
// MODULE: m2-jvm(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// -- Module: <m1-common> --
|
||||
package
|
||||
|
||||
public platform fun foo(): kotlin.Unit
|
||||
public header fun foo(): kotlin.Unit
|
||||
|
||||
|
||||
// -- Module: <m2-jvm> --
|
||||
|
||||
+3
-3
@@ -3,16 +3,16 @@
|
||||
// FILE: common.kt
|
||||
package common
|
||||
|
||||
platform fun foo()
|
||||
header fun foo()
|
||||
|
||||
// MODULE: m2-jvm(m1-common)
|
||||
// FILE: jvm.kt
|
||||
package jvm
|
||||
|
||||
<!PLATFORM_DEFINITION_WITHOUT_DECLARATION!>impl<!> fun foo() {}
|
||||
<!IMPLEMENTATION_WITHOUT_HEADER!>impl<!> fun foo() {}
|
||||
|
||||
// MODULE: m3-js(m1-common)
|
||||
// FILE: js.kt
|
||||
package js
|
||||
|
||||
<!PLATFORM_DEFINITION_WITHOUT_DECLARATION!>impl<!> fun foo() {}
|
||||
<!IMPLEMENTATION_WITHOUT_HEADER!>impl<!> fun foo() {}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
package
|
||||
|
||||
package common {
|
||||
public platform fun foo(): kotlin.Unit
|
||||
public header fun foo(): kotlin.Unit
|
||||
}
|
||||
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -2,4 +2,4 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
platform fun foo()
|
||||
header fun foo()
|
||||
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
package
|
||||
|
||||
public platform fun foo(): kotlin.Unit
|
||||
public header fun foo(): kotlin.Unit
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
platform fun foo(x: Int, <!PLATFORM_DECLARATION_WITH_DEFAULT_PARAMETER!>y: String = ""<!>)
|
||||
header fun foo(x: Int, <!HEADER_DECLARATION_WITH_DEFAULT_PARAMETER!>y: String = ""<!>)
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
package
|
||||
|
||||
public platform fun foo(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.String = ...): kotlin.Unit
|
||||
public header fun foo(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.String = ...): kotlin.Unit
|
||||
|
||||
Vendored
+1
-1
@@ -2,4 +2,4 @@
|
||||
// MODULE: m1-jvm
|
||||
// FILE: jvm.kt
|
||||
|
||||
<!PLATFORM_DEFINITION_WITHOUT_DECLARATION!>impl<!> fun foo() { }
|
||||
<!IMPLEMENTATION_WITHOUT_HEADER!>impl<!> fun foo() { }
|
||||
|
||||
@@ -2,17 +2,17 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
inline platform fun inlineFun()
|
||||
platform fun nonInlineFun()
|
||||
inline header fun inlineFun()
|
||||
header fun nonInlineFun()
|
||||
|
||||
// MODULE: m2-jvm(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
<!PLATFORM_DEFINITION_WITHOUT_DECLARATION!>impl<!> fun inlineFun() { }
|
||||
<!IMPLEMENTATION_WITHOUT_HEADER!>impl<!> fun inlineFun() { }
|
||||
impl fun nonInlineFun() { }
|
||||
|
||||
// MODULE: m3-js(m1-common)
|
||||
// FILE: js.kt
|
||||
|
||||
impl <!NOTHING_TO_INLINE!>inline<!> fun inlineFun() { }
|
||||
<!PLATFORM_DEFINITION_WITHOUT_DECLARATION!>impl<!> <!NOTHING_TO_INLINE!>inline<!> fun nonInlineFun() { }
|
||||
<!IMPLEMENTATION_WITHOUT_HEADER!>impl<!> <!NOTHING_TO_INLINE!>inline<!> fun nonInlineFun() { }
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
// -- Module: <m1-common> --
|
||||
package
|
||||
|
||||
public inline platform fun inlineFun(): kotlin.Unit
|
||||
public platform fun nonInlineFun(): kotlin.Unit
|
||||
public inline header fun inlineFun(): kotlin.Unit
|
||||
public header fun nonInlineFun(): kotlin.Unit
|
||||
|
||||
|
||||
// -- Module: <m2-jvm> --
|
||||
|
||||
Vendored
+3
-3
@@ -2,8 +2,8 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
<!CONFLICTING_OVERLOADS!>platform fun foo()<!>
|
||||
<!CONFLICTING_OVERLOADS!>header fun foo()<!>
|
||||
|
||||
<!CONFLICTING_OVERLOADS, PLATFORM_DECLARATION_WITH_BODY!>platform fun foo()<!> {}
|
||||
<!CONFLICTING_OVERLOADS, HEADER_DECLARATION_WITH_BODY!>header fun foo()<!> {}
|
||||
|
||||
<!PLATFORM_DECLARATION_WITH_BODY!>platform fun bar()<!> {}
|
||||
<!HEADER_DECLARATION_WITH_BODY!>header fun bar()<!> {}
|
||||
|
||||
Vendored
+3
-3
@@ -1,5 +1,5 @@
|
||||
package
|
||||
|
||||
public platform fun bar(): kotlin.Unit
|
||||
public platform fun foo(): kotlin.Unit
|
||||
public platform fun foo(): kotlin.Unit
|
||||
public header fun bar(): kotlin.Unit
|
||||
public header fun foo(): kotlin.Unit
|
||||
public header fun foo(): kotlin.Unit
|
||||
|
||||
Vendored
+2
-2
@@ -2,11 +2,11 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
platform fun foo()
|
||||
header fun foo()
|
||||
|
||||
// MODULE: m2-jvm(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
<!NON_MEMBER_FUNCTION_NO_BODY!>impl fun foo()<!>
|
||||
|
||||
<!NON_MEMBER_FUNCTION_NO_BODY!><!PLATFORM_DEFINITION_WITHOUT_DECLARATION!>impl<!> fun bar()<!>
|
||||
<!NON_MEMBER_FUNCTION_NO_BODY!><!IMPLEMENTATION_WITHOUT_HEADER!>impl<!> fun bar()<!>
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// -- Module: <m1-common> --
|
||||
package
|
||||
|
||||
public platform fun foo(): kotlin.Unit
|
||||
public header fun foo(): kotlin.Unit
|
||||
|
||||
|
||||
// -- Module: <m2-jvm> --
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
platform fun foo()
|
||||
header fun foo()
|
||||
|
||||
// MODULE: m2-jvm(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// -- Module: <m1-common> --
|
||||
package
|
||||
|
||||
public platform fun foo(): kotlin.Unit
|
||||
public header fun foo(): kotlin.Unit
|
||||
|
||||
|
||||
// -- Module: <m2-jvm> --
|
||||
|
||||
Vendored
+20
-20
@@ -2,39 +2,39 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
platform val justVal: String
|
||||
platform var justVar: String
|
||||
header val justVal: String
|
||||
header var justVar: String
|
||||
|
||||
platform val String.extensionVal: Unit
|
||||
platform var <T> T.genericExtensionVar: T
|
||||
header val String.extensionVal: Unit
|
||||
header var <T> T.genericExtensionVar: T
|
||||
|
||||
platform val valWithGet: String
|
||||
header val valWithGet: String
|
||||
get
|
||||
platform var varWithGetSet: String
|
||||
header var varWithGetSet: String
|
||||
get set
|
||||
|
||||
platform var varWithPlatformGetSet: String
|
||||
<!WRONG_MODIFIER_TARGET!>platform<!> get
|
||||
<!WRONG_MODIFIER_TARGET!>platform<!> set
|
||||
header var varWithPlatformGetSet: String
|
||||
<!WRONG_MODIFIER_TARGET!>header<!> get
|
||||
<!WRONG_MODIFIER_TARGET!>header<!> set
|
||||
|
||||
platform val backingFieldVal: String = <!PLATFORM_PROPERTY_INITIALIZER!>"no"<!>
|
||||
platform var backingFieldVar: String = <!PLATFORM_PROPERTY_INITIALIZER!>"no"<!>
|
||||
header val backingFieldVal: String = <!HEADER_PROPERTY_INITIALIZER!>"no"<!>
|
||||
header var backingFieldVar: String = <!HEADER_PROPERTY_INITIALIZER!>"no"<!>
|
||||
|
||||
platform val customAccessorVal: String
|
||||
<!PLATFORM_DECLARATION_WITH_BODY!>get()<!> = "no"
|
||||
platform var customAccessorVar: String
|
||||
<!PLATFORM_DECLARATION_WITH_BODY!>get()<!> = "no"
|
||||
<!PLATFORM_DECLARATION_WITH_BODY!>set(value)<!> {}
|
||||
header val customAccessorVal: String
|
||||
<!HEADER_DECLARATION_WITH_BODY!>get()<!> = "no"
|
||||
header var customAccessorVar: String
|
||||
<!HEADER_DECLARATION_WITH_BODY!>get()<!> = "no"
|
||||
<!HEADER_DECLARATION_WITH_BODY!>set(value)<!> {}
|
||||
|
||||
platform <!CONST_VAL_WITHOUT_INITIALIZER!>const<!> val constVal: Int
|
||||
header <!CONST_VAL_WITHOUT_INITIALIZER!>const<!> val constVal: Int
|
||||
|
||||
platform <!WRONG_MODIFIER_TARGET!>lateinit<!> var lateinitVar: String
|
||||
header <!WRONG_MODIFIER_TARGET!>lateinit<!> var lateinitVar: String
|
||||
|
||||
<!WRONG_MODIFIER_TARGET!>platform<!> val delegated: String by Delegate
|
||||
<!WRONG_MODIFIER_TARGET!>header<!> val delegated: String by Delegate
|
||||
object Delegate { operator fun getValue(x: Any?, y: Any?): String = "" }
|
||||
|
||||
fun test(): String {
|
||||
<!WRONG_MODIFIER_TARGET!>platform<!> val localVariable: String
|
||||
<!WRONG_MODIFIER_TARGET!>header<!> val localVariable: String
|
||||
localVariable = "no"
|
||||
return localVariable
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
platform var foo: String
|
||||
header var foo: String
|
||||
|
||||
// MODULE: m2-jvm(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
Reference in New Issue
Block a user