// #Regression #Conformance #ObjectOrientedTypes #Structs 
// Verify error when trying to inherit from a struct type
// Regression test for FSHARP1.0:2803
//<Expects status="notin">FS0191: Cannot inherit from interface type</Expects>
//<Expects id="FS0945" status="error" span="(17,5)">Cannot inherit a sealed type</Expects>


type StructType = struct
    new(x : int, y : int) = { X = x; Y = y }

    val X : int
    val Y : int
    end


type InheritFromStruct(x, y) = 
    inherit StructType(x, y)
    override this.ToString() = ""


exit 1
