Don't be afraid of snakes and correct mistakes

Report a typo

You have understood the idea of type aliases clearly, but your colleague has not. Correct the mistakes he (or she) made!

Write a program in Kotlin
// correct the code line below
type alias Pet.Reptile.Snake = Snake

// don't change the code below!
class Pet {
class Reptile {
data class Snake(val str: String) {
val sound = str
}
}
}
___

Create a free account to access the full topic