1 Commits
Author SHA1 Message Date
Minus 841c445a05 generics: <T, ...> type parameters on classes and interfaces
- parse_type_params(): accepts an optional `<T, U, ...>` list after a
  class/interface/trait name and records the names.
- The declaration is tagged `__generic` with the comma-joined parameter
  list (e.g. "T" or "K,V").  Parameters are an erasure model: they are
  compile-time only, so a generic class is an ordinary class at runtime.
- tests/generics.cat + suite: generic class, generic interface, a class
  implementing a generic interface, and a two-parameter class.
  Suite 152 -> 155.
2026-11-18 17:39:29 +00:00