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: core-kotlin-modules/core-kotlin-lang-oop-2/src/test/kotlin/com/baeldung/kotlin/anonymousObjects/AnonymousObjectsUnitTest.kt
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ interface Printable {
17
17
* If we use an anonymous object as the return value of a private method,
18
18
* its members can still be accessed
19
19
*/
20
-
classPlayerService() {
20
+
classPlayerService {
21
21
privatefungiveMeAPlayer() =object {
22
22
val name ="Kai"
23
23
val gamePlayed =6L
@@ -79,7 +79,7 @@ class AnonymousObjectsUnitTest {
79
79
}
80
80
81
81
@Test
82
-
fun`when anonymous object with a supertype, the explict casting is not required`() {
82
+
fun`when anonymous object with a supertype, explict casting isn't required`() {
0 commit comments