Skip to content

Commit

Permalink
fix: Remove obsolete paragraph about RefinedTypeOpsImpl. (#208)
Browse files Browse the repository at this point in the history
Closes #201
  • Loading branch information
Iltotore authored Jan 15, 2024
1 parent 6776639 commit a10396c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions docs/_docs/reference/newtypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,6 @@ val a: Temperature = value //Compile-time error
val b: Temperature = Temperature(value) //OK
```

Note: due to a [compiler bug](https://github.com/lampepfl/dotty/issues/17984), incremental/cross-module compilation can fail.
[An easy workaround](https://github.com/Iltotore/iron/issues/131#issuecomment-1614974318) but with more boilerplate is
to use `RefinedTypeOpsImpl[A, C, T]` where:
- `A` is the base type
- `C` is the constraint type
- `T` is the type alias

### Inheriting base type

Assuming the following new type:
Expand Down

0 comments on commit a10396c

Please sign in to comment.