impworks / lens

Language for Embeddable .NET Scripting
MIT License
92 stars 9 forks source link

Bad IL format #182

Closed impworks closed 7 years ago

impworks commented 7 years ago

Пример кода:

var descr = match new [1; 2; 3] with
    case [x; ...y] then
        var t = y.GetType ()
        t.Name

print descr

Выдает ошибку:

An unexpected error has occured!

Bad IL format.
   at System.Reflection.MemberInfo.get_Name()
   at <Script>.Run()
impworks commented 7 years ago

Проблема оказалась связана не с Pattern Matching, а с обращением к виртуальному свойству.