Skip to content

Commit

Permalink
turns out github markdown won't support comment style, changed to image
Browse files Browse the repository at this point in the history
  • Loading branch information
tribbloid committed Nov 4, 2023
1 parent daa994b commit 642b972
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 25 deletions.
27 changes: 2 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,19 +334,7 @@ XXX.scala:15: error: type mismatch;

(`-P:splain:Vtype-detail:6`)

XXX.scala:15: error: type mismatch;

- Test.F\[

- Test.a.type (<label class="ob-comment" title="" style="background:red"> with underlying type Test.A <input type="checkbox"> <span style=""> long </span></label>)|a.type (with underlying type a.type) <label class="ob-comment" title="" style="background:orange"> where val a: Test.A <input type="checkbox"> <span style=""> existential </span></label> (<label class="ob-comment" title="" style="background:yellow"> defined at newSource1.scala:13:18 <input type="checkbox"> <span style=""> position </span></label>)

- <label class="ob-comment" title="" style="background:green"> ――(left side reduced from) <input type="checkbox"> <span style=""> reduction </span></label>

- Test.AA

- <label class="ob-comment" title="" style="background:blue"> (which expands to) Test.a.type <input type="checkbox"> <span style=""> alias </span></label>

- \]
![](img/bc959e77.png)

In addition, multiple names of the detail kind (denoted by bold text in the above list) can be appended to the option value to enable it, e.g. `-P:splain:Vtype-detail:1,reduction,position` can attach type reduction process & type definition position while bypassing **long** and **existential**.

Expand All @@ -373,18 +361,7 @@ XXX.scala:16: error: implicit error;

(`-P:splain:Vtype-diffs-detail:4`)

XXX.scala:16: error: implicit error;
- !I ev:

- Long(<label class="ob-comment" title="" style="background:red"> in method add <input type="checkbox"> <span style=""> disambiguation </span></label>) =:= scala.Long

- ――(<label class="ob-comment" title="" style="background:yellow"> comparing \<found\> =:= \<required\> <input type="checkbox"> <span style=""> builtIn </span></label>)

- found : Long(in method add)

- required: scala.Long

- Cannot prove that Long =:= Long.
![](img/86df485f.png)

# Development

Expand Down
Binary file added img/86df485f.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions img/VtypeDetail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
XXX.scala:15: error: type mismatch;

- Test.F\[

- Test.a.type (<label class="ob-comment" title="" style="background:red"> with underlying type Test.A <input type="checkbox"> <span style=""> long </span></label>)|a.type (with underlying type a.type) <label class="ob-comment" title="" style="background:orange"> where val a: Test.A <input type="checkbox"> <span style=""> existential </span></label> (<label class="ob-comment" title="" style="background:yellow"> defined at newSource1.scala:13:18 <input type="checkbox"> <span style=""> position </span></label>)

- <label class="ob-comment" title="" style="background:green"> ――(left side reduced from) <input type="checkbox"> <span style=""> reduction </span></label>

- Test.AA

- <label class="ob-comment" title="" style="background:blue"> (which expands to) Test.a.type <input type="checkbox"> <span style=""> alias </span></label>

- \]
12 changes: 12 additions & 0 deletions img/VtypeDiffsDetail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
XXX.scala:16: error: implicit error;
- !I ev:

- Long(<label class="ob-comment" title="" style="background:red"> in method add <input type="checkbox"> <span style=""> disambiguation </span></label>) =:= scala.Long

- ――(<label class="ob-comment" title="" style="background:yellow"> comparing \<found\> =:= \<required\> <input type="checkbox"> <span style=""> builtIn </span></label>)

- found : Long(in method add)

- required: scala.Long

- Cannot prove that Long =:= Long.
Binary file added img/bc959e77.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 642b972

Please sign in to comment.