Open KacperFKorban opened 4 months ago
It should be possible to use opaque types as function inputs. e.g.
object HiddenScope { opaque type PLN = Int object PLN: def apply(value: Int): PLN = value extension (pln: PLN) def toInt: Int = pln } def showPLN(pln: HiddenScope.PLN): String = s"${pln.toInt} PLN"
It should be possible to use opaque types as function inputs. e.g.