You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While writing #8521 I came across this magnificent internal error while copying and editing some code:
typeFoo=static memberBar(x:int)=()static memberBar(x:bool)=()static member inlineInvoke<^N,'a,'bwhen(Foo or ^N):(static member Bar:'a->'b)>source =let inlinecall(_:^M,a)=((^Mor^N):(static memberBar:_->_)(a))
call (Unchecked.defaultof<Foo>, source)typeHober=static memberHoberator(x:int)=()static memberHoberator(x:bool)=()static member inlineInvoke<^N,'a,'bwhen(Hober or ^N):(static member Hoberator:'a->'b)>source =let inlinecall(_:^M,a)=((^Mor^N):(static memberHoberator:_->_)(a))
call (Unchecked.defaultof<Foo>, source)
error FS0043: A type parameter is missing a constraint 'when (Foo or ^N) : (static member Hoberator : '?1539481 -> '?1539482)'
error FS0073: internal error: couldn't remap internal value 'Hoberator'
error FS0073: internal error: couldn't remap internal value 'Hoberator'
error FS0073: internal error: couldn't remap internal value 'Invoke'
error FS0073: internal error: couldn't remap internal tycon type Hober <> =
class
end
with
Hoberator : int -> unit
! compiled_name! = Hoberator
membInfo-slotsig! = []
# arity<0>[1]
Hoberator : bool -> unit
! compiled_name! = Hoberator
membInfo-slotsig! = []
# arity<0>[1]
Invoke : !< ^_N when ^_N : trait
^_N : trait,'_a,'_b> '_?1539481 -> '_?1539482
! compiled_name! = Invoke
membInfo-slotsig! = []
# arity<3>[1]
end
The text was updated successfully, but these errors were encountered:
NinoFloris
changed the title
Internal error: couldn't remap internal tycon type Foo <>
Internal error: couldn't remap internal tycon type Hober <>
Feb 8, 2020
While writing #8521 I came across this magnificent internal error while copying and editing some code:
Sharplab: https://sharplab.io/#v2:DYLgZgzgPgLgngBwKYAIBiB7DKC8KCwAUCiShDAIYwCWAxigLZIMBGSATigEIWcAUADxApqAOxgBKXCj4SipMpRr0mrDt14yhKFlmBS8sovNLkqdRszacxwMagCSogG4YA1kgA8KAHoA5ABoUAHIKIOCWFAB3AAskURlMbAxOfwlhPjNlSzVOHnZhUJQAWgA+EJYJcrIMAFd2WlQ8EwUSYCQYEVE7UVRaCmBgGQB9YR8AWSCKAxbWhT4+CZQU3z90mSyLVWsNApRhkvLhiT5puUJZhX7BmQBVUVo42g8AEwA6F6QwClrgGAwwJ4kqUghA6g0kOdjIR4MgUAAJDA7ZrEUxKLZWdSI6xUFaCYRiSTSIyokibFSYzjYji4/jaXQYfTE84KWbknI7Wz2FBOVwebz+cJhCrROIJPjUzgrNIZdnbLFImn/PZFMoVKpk8GNaSXUjtTpc3ooa5DPijXyTFDTXC6uYLJbStay9EU3IIxXsWnCA5q46nCRQ0mtE13B5PV4fL4/P4AoFYEE1eqNQNAA
The text was updated successfully, but these errors were encountered: