Skip to content

Commit 0daed34

Browse files
author
COLBERT Tyler
committed
Fix polyfill for CreateType
1 parent 1f26a51 commit 0daed34

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
- Sean Freitag ([@cowboygneox](https://github.com/cowboygneox))
5959
- Serge Weinstock ([@sweinst](https://github.com/sweinst))
6060
- Simon Mourier ([@smourier](https://github.com/smourier))
61+
- Tyler Colbert ([@shadowbane1000](https://github.com/shadowbane1000))
6162
- Viktoria Kovescses ([@vkovec](https://github.com/vkovec))
6263
- Ville M. Vainio ([@vivainio](https://github.com/vivainio))
6364
- Virgil Dupras ([@hsoft](https://github.com/hsoft))

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ details about the cause of the failure
2020
- Fix incorrect dereference of wrapper object in `tp_repr`, which may result in a program crash
2121
- Fix incorrect dereference in params array handling
2222
- Fix `object[]` parameters taking precedence when should not in overload resolution
23+
- Fix polyfill CreateType() for .NET Standard 2.0. Used when creating C# delegates from python
2324

2425
## [2.5.0][] - 2020-06-14
2526

src/runtime/polyfill/ReflectionPolifills.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static AssemblyBuilder DefineDynamicAssembly(this AppDomain appDomain, As
1616

1717
public static Type CreateType(this TypeBuilder typeBuilder)
1818
{
19-
return typeBuilder.GetTypeInfo().GetType();
19+
return typeBuilder.GetTypeInfo();
2020
}
2121
#endif
2222
public static T GetCustomAttribute<T>(this Type type) where T: Attribute

0 commit comments

Comments
 (0)