qupa-project / uniview-lang

View once immutability enabling the safeties of immutable code, while enjoying near procedural performance
https://uniview.qupa.org
MIT License
2 stars 0 forks source link

Able to define the same function twice #42

Closed AjaniBilby closed 3 years ago

AjaniBilby commented 3 years ago

The tests to ensure function collisions always yield false for files and classes

AjaniBilby commented 3 years ago

The sample below will compile, and the resulting output will be world. This should not compile and instead should throw an error

fn main():int {
  println("Hello");
  return 0;
}
fn main():int {
  println("World");
  return 0;
}