Migration to expect/actual: fix multiplatform integration tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
header class Foo(param: String) {
|
||||
expect class Foo(param: String) {
|
||||
var property: Int
|
||||
|
||||
fun <T> function(p: List<T>): T
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
impl class Foo impl constructor(param: String) {
|
||||
impl var property: Int = param.length
|
||||
actual class Foo actual constructor(param: String) {
|
||||
actual var property: Int = param.length
|
||||
|
||||
impl fun <T> function(p: List<T>): T = p.first()
|
||||
actual fun <T> function(p: List<T>): T = p.first()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user