File: shape_mismatch.cppo

package info (click to toggle)
cppo 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 588 kB
  • sloc: ml: 2,133; makefile: 54; sh: 11
file content (5 lines) | stat: -rw-r--r-- 143 bytes parent folder | download
1
2
3
4
5
#define FOO 24
#define APPLY(F : [.], X) F(X)
APPLY(FOO, 42)
  (* invalid because APPLY expects a macro of type [.]
     but FOO has type . *)