vapourlang / vapour

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

Check type on access oprators #45

Closed JohnCoene closed 2 months ago

JohnCoene commented 2 months 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 2 months ago

Also check that the attributes exists here!