``` header class Url(url: String) { val protocol: String // same with fun getProtocol(): Str...
y
Copy code
header class Url(url: String) {
    val protocol: String
    // same with fun getProtocol(): String
}

import java.net.URL
impl typealias Url = URL
Why do I get error?
URL
has a method
String getProtocol()