Changeset 5027
- Timestamp:
- 06/27/05 20:43:21 (4 years ago)
- svk:copy_cache_prev:
- 6880
- Files:
-
- 4 modified
-
src/Pugs/AST/Internals.hs (modified) (1 diff)
-
src/Pugs/Prim/Match.hs (modified) (2 diffs)
-
t/pugsbugs/positional_parameters_in_BUILD.t (modified) (1 diff)
-
t/statements/given.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/AST/Internals.hs
r4945 r5027 251 251 str <- fromVal =<< fetch "name" 252 252 return $ mkType str 253 fromVal v = return $ valType v253 fromVal v = evalValType v 254 254 doCast v = castFailM v "VType" 255 255 -
src/Pugs/Prim/Match.hs
r5026 r5027 153 153 op2Match (VType typ) (VType t) = do 154 154 typs <- pkgParents (showType typ) 155 return . VBool $ showType t `elem` typs155 return . VBool $ showType t `elem` (showType typ:typs) 156 156 157 157 op2Match x y@(VType _) = do … … 159 159 op2Match (VType typ) y 160 160 161 {-162 161 op2Match (VRef x) y = do 163 162 x' <- readRef x 164 163 op2Match x' y 165 -}166 164 167 165 op2Match x y = do -
t/pugsbugs/positional_parameters_in_BUILD.t
r4694 r5027 9 9 class Foo { submethod BUILD ($value) { $value_from_BUILD = $value; } }; 10 10 11 my $foo = Foo.new("passed"); 12 13 is $value_from_BUILD, 'passed', 'positional args passed to new() are passed on to BUILD', :todo<bug>; 11 dies_ok { Foo.new("passed") }, 'positional args passed to new() should not be passed on to BUILD'; -
t/statements/given.t
r5007 r5027 229 229 is(@got.join(","), "false,true", q!given { when true { } }!); 230 230 '; 231 fail("when true is parsefail ; $!", :todo<feature>) if $!;231 fail("when true is parsefail", :todo<feature>) if $!;
