You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common/kotlinx-coroutines-core-common/src/main/kotlin/kotlinx/coroutines/experimental/intrinsics/Undispatched.kt
Copy file name to clipboardExpand all lines: common/kotlinx-coroutines-core-common/src/test/kotlin/kotlinx/coroutines/experimental/CommonWithTimeoutTest.kt
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -109,5 +109,20 @@ class CommonWithTimeoutTest : TestBase() {
109
109
}
110
110
finish(5)
111
111
}
112
+
113
+
@Test
114
+
funtestBadClass() = runTest {
115
+
val bad =BadClass()
116
+
val result = withTimeout(100) {
117
+
bad
118
+
}
119
+
assertSame(bad, result)
120
+
}
121
+
122
+
classBadClass {
123
+
overridefunequals(other:Any?): Boolean= error("Should not be called")
124
+
overridefunhashCode(): Int= error("Should not be called")
125
+
overridefuntoString(): String= error("Should not be called")
0 commit comments