~mna/snow

ref: 4dd13484288457ae64c0e9e9582d5b5d29c78360 snow/pkg/codegen/testdata/fn_generic_external.snow -rw-r--r-- 198 bytes
4dd13484Martin Angers pkg/codegen: add generic tests 1 year, 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@extern(import: "fmt", symbol: "Println")
fn println [$T] (v: $T)

fn main() {
  println [int] (1)
  println [string] ("hello")
  println [bool] (true)
  println [int] (2)
}

#=1
#=hello
#=true
#=2