Skip to content

Commit

Permalink
Fix tests: do not reference target from common
Browse files Browse the repository at this point in the history
which isn't allowed anymore in K2.

(cherry picked from commit 679ccaf)
  • Loading branch information
ting-yuan authored and neetopia committed Nov 15, 2023
1 parent bc5ec4f commit 4c8add1
Show file tree
Hide file tree
Showing 27 changed files with 63 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class GradleCompilationTest {
.build()
// add a file that needs access to the generated file
testRule.appModule.addMultiplatformSource(
"commonMain", "Foo.kt",
"linuxX64Main", "Foo.kt",
"""
class Foo {
val x = ToBeGenerated()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ kotlin {
nodejs()
}
sourceSets {
val commonMain by getting {
val jsMain by getting {
dependencies {
implementation(project(":annotations"))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ kotlin {
withJava()
}
sourceSets {
val commonMain by getting {
val jvmMain by getting {
dependencies {
implementation(project(":annotations"))
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example

class Bar {
val baz = Foo().baz
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example

class Baz {
val bar = Foo().bar
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example

class Bar {
val baz = Foo().baz
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example

class Baz {
val bar = Foo().bar
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example

class Bar {
val baz = Foo().baz
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example

class Baz {
val bar = Foo().bar
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example

class Bar {
val baz = Foo().baz
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example

class Baz {
val bar = Foo().bar
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example

class Bar {
val baz = Foo().baz
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example

class Baz {
val bar = Foo().bar
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example

class Bar {
val baz = Foo().baz
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example

class Baz {
val bar = Foo().bar
}

0 comments on commit 4c8add1

Please sign in to comment.