IDE: Visual Studio X/Fire
Version: 10.0.0.2451 (develop)
Target (If relevant): Island(OSX)
Description:
A reduced section of code that causes a stack overflow in the compiler.
Expected Behavior:
Compiler Errors.
Actual Behavior:
Stack Overflow with stack trace section:
at RemObjects.Oxygene.Code.TypeManager.SameType (RemObjects.Oxygene.Code.BaseType,RemObjects.Oxygene.Code.BaseType,bool,System.Collections.Generic.IList`1<RemObjects.Oxygene.Code.BaseType>,bool,RemObjects.Oxygene.Code.GenericInstantiateType,bool,bool) [0x00c00] in <4870f2f246c74ece8b45962f2e89faaf>:0
at RemObjects.Oxygene.Code.GenericInstantiateType.IsCompatibleWith (RemObjects.Oxygene.Code.BaseType,System.Collections.Generic.IList`1<RemObjects.Oxygene.Code.BaseType>,RemObjects.Oxygene.Code.GenericInstantiateType) [0x004bb] in <4870f2f246c74ece8b45962f2e89faaf>:0
at RemObjects.Oxygene.Code.GenericInstantiateType.IsCompatibleWith (RemObjects.Oxygene.Code.BaseType,System.Collections.Generic.IList`1<RemObjects.Oxygene.Code.BaseType>,RemObjects.Oxygene.Code.GenericInstantiateType) [0x003b5] in <4870f2f246c74ece8b45962f2e89faaf>:0
at RemObjects.Oxygene.Code.TypeManager.SameType (RemObjects.Oxygene.Code.BaseType,RemObjects.Oxygene.Code.BaseType,bool,System.Collections.Generic.IList`1<RemObjects.Oxygene.Code.BaseType>,bool,RemObjects.Oxygene.Code.GenericInstantiateType,bool,bool) [0x00c00] in <4870f2f246c74ece8b45962f2e89faaf>:0
Steps:
public protocol Numeric {
associatedtype Magnitude: Numeric
}
extension Numeric {
public static func foo (rhs: UInt) {
Int_(rhs)
}
}
public struct UInt_: Numeric {
public typealias Magnitude = UInt_
}
public struct Int_: Numeric {
public typealias Magnitude = UInt_
public var magnitude: UInt_ {
UInt_(_value)
}
}