From 30d8349272930a4507187c7377ccaffd3a966997 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Thu, 7 Apr 2011 14:43:25 +0400 Subject: [PATCH] Typechecker logic fixed for one-branch ifs and 'return x' for Unit-returning functions --- .idea/runConfigurations/All_Tests.xml | 1 + .../jet/lang/types/JetTypeChecker.java | 6 ++- .../jet/lang/types/JetTypeInferrer.java | 38 +++++++++++++------ idea/testData/cfg/Nonlocals.instructions | 2 +- idea/testData/cfg/Nonlocals.jet | 2 +- idea/testData/checker/FunctionReturnTypes.jet | 2 + .../jet/types/JetTypeCheckerTest.java | 3 ++ 7 files changed, 39 insertions(+), 15 deletions(-) diff --git a/.idea/runConfigurations/All_Tests.xml b/.idea/runConfigurations/All_Tests.xml index 80abd8cce40..fe9f201fd2d 100644 --- a/.idea/runConfigurations/All_Tests.xml +++ b/.idea/runConfigurations/All_Tests.xml @@ -16,6 +16,7 @@