Uncomment a bit of a test (#64)

This commit is contained in:
Patrick Stevens
2025-06-22 19:36:47 +01:00
committed by GitHub
parent 91f5376e8a
commit 19ec9f8670
8 changed files with 110 additions and 88 deletions

View File

@@ -519,6 +519,12 @@ type UnaryMetadataTokenIlOp =
| Call
| Calli
| Callvirt
/// Attempts to cast an object passed by reference to the specified class.
/// If the class of the object on the top of the stack does not implement the new class
/// (assuming the new class is an interface)
/// and is not a derived class of the new class then an InvalidCastException is thrown.
/// If the object reference is a null reference, castclass succeeds
/// and returns the new object as a null reference.
| Castclass
| Newobj
| Newarr

View File

@@ -92,6 +92,8 @@ type TypeInfoCrate =
abstract ToString : unit -> string
abstract BaseType : BaseTypeInfo option
abstract Assembly : AssemblyName
abstract Namespace : string
abstract Name : string
[<RequireQualifiedAccess>]
module TypeInfoCrate =
@@ -108,6 +110,10 @@ module TypeInfoCrate =
member this.BaseType = t.BaseType
member this.Assembly = t.Assembly
member this.Namespace = t.Namespace
member this.Name = t.Name
}
type BaseClassTypes<'corelib> =