Skip to content

Commit 1d2cb80

Browse files
committed
fixed comments
1 parent 930989a commit 1d2cb80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/org/rascalmpl/library/lang/rascal/tests/functionality/SyntaxRoleModifiers1.rsc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ test bool namePreservation2() {
6161
// this is a simple ad-hoc mock for the real explode function:
6262
syntax[&T] explode(data[&T] t:a()) = [syntax[A]] "a";
6363

64-
// the type signature of `implode` guarantees name preservation,
64+
// the type signature of `explode` guarantees name preservation,
6565
// so explode of a data A will produce a syntax A without a type-checking error:
6666
syntax[A] x = explode(a());
6767

68-
// this is not the real test. Of course the dynamic type would be data[A].
68+
// this is not the real test. Of course the dynamic type would be syntax[A].
6969
// the real test was the above assignment, where the static type system for
7070
// assignment and function return types would fail if we had a bug here.
7171
return sort("A") == typeOf(x);

0 commit comments

Comments
 (0)