krzkaczor / SwiftAST

MIT License
5 stars 0 forks source link

Validate return statement types #7

Open krzkaczor opened 10 years ago

krzkaczor commented 10 years ago

All return statement expressions types should be eq/subtype to declared one

krzkaczor commented 10 years ago

Test: func function () -> Int { if 1 == 2 { return 1; } return 5; }