8d3f6f1ce7
For each platform declaration, there must be at least one impl declaration in the module with the compatible signature; similarly, for each impl declaration, there must be at least one platform declaration with the compatible signature. Note that currently the presence of the 'impl' modifier is not checked yet. Also, the sad fact is that if you have platform and impl declarations which are not compatible, you get two errors: on the platform delcaration and on the impl declaration. This needs to be addressed as well
26 lines
590 B
Kotlin
Vendored
26 lines
590 B
Kotlin
Vendored
platform class PClass
|
|
platform interface PInterface
|
|
platform object PObject
|
|
platform enum class PEnumClass
|
|
platform annotation class PAnnotationClass
|
|
|
|
internal platform object InternalObject
|
|
public platform object PublicObject
|
|
private platform object PrivateObject
|
|
|
|
open platform class OpenClass
|
|
abstract platform class AbstractClass
|
|
final platform class FinalClass
|
|
|
|
// platform data class DataClass(val x: Int)
|
|
platform class NonDataClass(x: Int)
|
|
|
|
platform class C1<A>
|
|
platform class C2<B>
|
|
platform class C3<D, E : D>
|
|
|
|
platform class C4<F>
|
|
|
|
|
|
platform abstract class ExtendsNumber : Number
|