mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-15 14:23:32 +03:00
19 lines
594 B
Plaintext
19 lines
594 B
Plaintext
1/1: Building Fld (Fld.idr)
|
|
Error: While processing right hand side of r2_shouldNotTypecheck1. Ambiguous elaboration. Possible results:
|
|
Main.R2.MkR
|
|
Main.R1.MkR Type
|
|
|
|
Fld.idr:72:26--72:29
|
|
68 | r1 : R1 -- explicit fields access
|
|
69 | r1 = MkR {field = "string"}
|
|
70 |
|
|
71 | r2_shouldNotTypecheck1 : ?
|
|
72 | r2_shouldNotTypecheck1 = MkR {field = the Nat 22} -- fail, impossible to disambiguate
|
|
^^^
|
|
|
|
Main> Main.myDog : OrdinaryDog
|
|
Main> Main.mySuperDog : SuperDog
|
|
Main> Main.other : Other String
|
|
Main> 1 hole: Main.r2_shouldNotTypecheck1
|
|
Main> Bye for now!
|