thelilylang / lily

The Lily programming language ⚜
MIT License
9 stars 2 forks source link

Fix generic params #531

Closed ArthurPV closed 1 month ago

ArthurPV commented 1 month ago

Implements the following syntax for all types of generic params (declaration or call):

struct Vec.[@T] {
  @T *buffer;
}

@T f.[@T](@T x) {
  return x;
}