Support platform modifier in back-ends, add multi-platform integration test
Skip 'platform' declarations completely in back-ends
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
platform class Printer {
|
||||
fun print(message: String)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val printer = Printer()
|
||||
printer.print("Hello, world!")
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
impl class Printer {
|
||||
fun print(message: String) {
|
||||
println("JS says: " + message)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
impl class Printer {
|
||||
fun print(message: String) {
|
||||
println("JVM says: " + message)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
-- Common --
|
||||
Exit code: OK
|
||||
Output:
|
||||
|
||||
-- JVM --
|
||||
Exit code: OK
|
||||
Output:
|
||||
|
||||
-- JS --
|
||||
Exit code: OK
|
||||
Output:
|
||||
Reference in New Issue
Block a user