blob: d99bbb340ab35bc402971bae6a19704e6cbb7cd2 [file]
// ISSUE: KT-59326
// Test that we don't have this exception in Kotlin/JS:
// Unhandled JavaScript exception: expected expression, got keyword 'default'
class C(default: String = "O", val result: String = default)
fun foo(default: String = "K", result: String = default) = result
fun box(): String {
return C().result + foo()
}