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

Revision 9230, 395 bytes (checked in by maeder, 2 years ago)

compute minimal variances

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