escalier-lang / escalier-next

Improved type safety with tight TypeScript interop
https://escalier-lang.github.io/escalier-next/
MIT License
14 stars 0 forks source link

Functions with type params don't error when the function returns a non-generic type #215

Open kevinbarabash opened 7 months ago

kevinbarabash commented 7 months ago

The following code type checks but it shouldn't:

fn snd<A, B>(x: A, y: B) -> B {
  return "hello";
}