File: parameterizedPolymorphicConstantMarch2023.maude

package info (click to toggle)
maude 3.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,480 kB
  • sloc: cpp: 133,192; makefile: 2,180; yacc: 1,984; sh: 1,373; lex: 886
file content (15 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
***
***	Check that parameter changes work for polymorphic constants.
***

fmod FOO{X :: TRIV} is
  op c{X} : -> Universal [poly (0)] .
endfm

fmod BAR{Y :: TRIV} is
  inc FOO{Y} .
  op b : -> Bool .
  eq b = c{Y} .
endfm

show all .