JS: update backend tests to respect new front-end rules for external declarations

This commit is contained in:
Alexey Andreev
2016-12-19 19:38:49 +03:00
parent 6ef4a3389e
commit 06e83e895f
8 changed files with 18 additions and 13 deletions
+3 -3
View File
@@ -113,7 +113,7 @@ external object Object {
interface Trait {
val a: String
var b: String
fun test(): Int = noImpl
fun test(): Int
companion object {
val a: String = noImpl
@@ -149,7 +149,7 @@ external class Class {
interface Trait {
val a: String
var b: String
fun test(): Int = noImpl
fun test(): Int
companion object {
val a: String = noImpl
@@ -189,7 +189,7 @@ external interface Trait {
interface Trait {
val a: String
var b: String
fun test(): Int = noImpl
fun test(): Int
companion object {
val a: String = noImpl
@@ -1,7 +1,7 @@
external open class A {
open fun f(x: Int) = "number"
open fun f(x: Int): String = noImpl
open fun f(x: String) = "string"
open fun f(x: String): String = noImpl
}
class B : A() {
+2 -2
View File
@@ -16,11 +16,11 @@ fun anotherCount(vararg a: Int) = anotherParamCount(*a)
external fun test3(bar: Bar, dummy: Int, vararg args: Int): Boolean = noImpl
external class Bar(val size: Int, order: Int = 0) {
external class Bar(val size: Int, order: Int = noImpl) {
fun test(order: Int, dummy: Int, vararg args: Int): Boolean = noImpl
companion object {
fun startNewTest(): Boolean = noImpl
var hasOrderProblem: Boolean = false
var hasOrderProblem: Boolean = noImpl
}
}