ADTast-experimentalenumforall-pointer-decaypthread-emulationqualifiedEnum
Last change
on this file since cd4c605 was
fd54fef,
checked in by Michael Brooks <mlbrooks@…>, 4 years ago
|
Converting the project to use the new syntax for otype, dtype and ttytpe.
Changed prelude (gen), libcfa and test suite to use it. Added a simple deprecation rule of the old syntax to the parser; we might wish to support both syntaxes "officially," like with an extra CLI switch, but this measure should serve as a simple reminder for our team to try the new syntax.
|
-
Property mode set to
100644
|
File size:
247 bytes
|
Line | |
---|
1 | // trait declaration |
---|
2 | |
---|
3 | trait has_q( T ) { |
---|
4 | T q( T ); |
---|
5 | }; |
---|
6 | |
---|
7 | forall( z | has_q( z ) ) void f() { |
---|
8 | trait has_r( T, U ) { |
---|
9 | T r( T, T (T,U) ); |
---|
10 | }; |
---|
11 | |
---|
12 | extern otype x, y | has_r( x, y ); |
---|
13 | } |
---|
14 | |
---|
15 | //Dummy main |
---|
16 | int main(int argc, char const *argv[]) |
---|
17 | { |
---|
18 | return 0; |
---|
19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.