~mna/snow unlisted

snow/pkg/parser/testdata/struct_complex_generic.snow -rw-r--r-- 275 bytes
424066c5Martin Angers doc: v0.0.5 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
struct A [$T, $U] {
  struct B [$V] {
    var ffb: ($V) -> $V
  }

  var bb: B[$U]
  var ffa: ($T) -> $T
}

fn str(s: string) -> string {
  return s
}

fn integer(i: int) -> int {
  return i
}

fn main() {
  var a = A[int, string] (bb: A.B[string](ffb: str), ffa: integer)
}