Skip to content

Commit

Permalink
Add tests showing how comments are handled
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Aug 27, 2023
1 parent 3c4642d commit a3b562b
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/source/type-alias-where-clauses-with-comments.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
type Foo // comment1
// interlinear1
where // comment2
// interlinear2
A: B, // comment3
C: D, // comment4
// interlinear3
= E; // comment5

type Foo // comment6
// interlinear4
where// comment7
// interlinear5
A: B, // comment8
C: D, // comment9
// interlinear6
= E // comment10
// interlinear7
where // comment11
// interlinear8
F: G, // comment12
H: I; // comment13

type Foo // comment14
// interlinear9
= E // comment15
// interlinear10
where // comment16
// interlinear11
F: G,// comment17
H: I;// comment18
39 changes: 39 additions & 0 deletions tests/target/type-alias-where-clauses-with-comments.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
type Foo
// comment1
// interlinear1
where
// comment2
// interlinear2
A: B, // comment3
C: D, // comment4
// interlinear3
= E; // comment5

type Foo
// comment6
// interlinear4
where
// comment7
// interlinear5
A: B, // comment8
C: D, // comment9
// interlinear6
= E
// comment10
// interlinear7
where
// comment11
// interlinear8
F: G, // comment12
H: I; // comment13

type Foo // comment14
// interlinear9
= E
// comment15
// interlinear10
where
// comment16
// interlinear11
F: G, // comment17
H: I; // comment18

0 comments on commit a3b562b

Please sign in to comment.