vapourlang / vapour

Typed superset of R
http://vapour.run
Apache License 2.0
162 stars 2 forks source link

Check type on access oprators #45

Closed JohnCoene closed 1 week ago

JohnCoene commented 1 week ago

Check type on $ and [, and [[

type person: object {
  name: char
}

func create(name: int): person {
  let p: person = create()
  p$name = name # should fail wrong type
  return p
}
JohnCoene commented 1 week ago

Also check that the attributes exists here!