18 lines
186 B
Plaintext
18 lines
186 B
Plaintext
// module test_22b2_instance_present
|
|
|
|
class Show a {
|
|
fn show(x: a) -> Str
|
|
}
|
|
|
|
instance Show Int {
|
|
fn show {
|
|
|x: a| -> Str {
|
|
"n"
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() -> Str {
|
|
show(42)
|
|
}
|