Skip to content

Commit

Permalink
Extending test to check delegates with classes that implement the int…
Browse files Browse the repository at this point in the history
…erface
  • Loading branch information
gaschd committed Nov 5, 2024
1 parent 51b0ff1 commit 9a08d6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/CSharp/ExpressionTests/ExpressionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,7 @@ Public Shared FuncClass As Func(Of TestObjClass) = AddressOf FunctionReturningCl
Public Shared FuncBaseClass As Func(Of TestBaseObjClass) = AddressOf FunctionReturningClass
Public Shared FuncInterface As Func(Of ITestObj) = AddressOf FunctionReturningClass
Public Shared FuncInterfaceParam As Func(Of ITestObj, ITestObj) = AddressOf CastObj
Public Shared FuncClassParam As Func(Of TestObjClass, ITestObj) = AddressOf CastObj
Public Shared Function FunctionReturningClass() As TestObjClass
Return New TestObjClass()
Expand Down Expand Up @@ -1481,6 +1482,7 @@ public partial class Issue1148
public static Func<TestBaseObjClass> FuncBaseClass = FunctionReturningClass;
public static Func<ITestObj> FuncInterface = FunctionReturningClass;
public static Func<ITestObj, ITestObj> FuncInterfaceParam = CastObj;
public static Func<TestObjClass, ITestObj> FuncClassParam = CastObj;
public static TestObjClass FunctionReturningClass()
{
Expand Down

0 comments on commit 9a08d6e

Please sign in to comment.