gavr123456789 / Niva

Smalltalk like programming language
https://gavr123456789.github.io/niva-site
41 stars 2 forks source link

Genirics instantiation of receiver #279

Open gavr123456789 opened 2 months ago

gavr123456789 commented 2 months ago
type Pair
  x: T
  y: G

Pair(MutableList::T, MutableList::G) forEach = [
  this x forEach: [] // forEach is not possible for T

]