root/trunk/HasCASL/test/ContraVariance.hascasl.output @ 11877

Revision 11877, 470 bytes (checked in by maeder, 5 months ago)

disallowed explicit pseudo type notation following := (assign)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1var   a : +Type
2type  p a := Pred (Pred a)
3      %% should be correct
4type  m b := b
5      %%
6types
7m : -Type -> Type;
8p : +Type -> Type
9types
10m := \ b : -Type . b;
11p := \ a : +Type . Pred (Pred a)
12var
13a : +Type %(var_1)%
14### Hint 1.5, is type variable 'a'
15### Hint 3.18, wrong covariance of 'a'
16### Hint 3.18, no kind found for 'a'
17*** Error 3.13-3.18, no kind found for 'Pred a'
18*** Error 5.6,
19wrong type of 'm'
20  expected: \ b : -Type . b
21     found: \ b : +Type . b
Note: See TracBrowser for help on using the browser.