Ignore:
Timestamp:
Sep 29, 2007, 12:44:41 PM (17 years ago)
Author:
dai
Message:

静的メソッドのデリゲートに対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TestCase/SimpleTestCase/DelegateTest.ab

    r340 r342  
    55Delegate Sub Callback3( a As Long )
    66Delegate Sub Callback4( a As String )
    7 Delegate Function Callback7() As Long
     7Delegate Function Callback7( str As String ) As String
    88
    99
     
    5959    End Sub
    6060
    61     Function Proc7() As String
    62         Return "Proc7 result"
     61    Static Function Proc7( str As String ) As String
     62        Return "Proc7 result[" + str + "]"
    6363    End Function
    6464End Class
     
    7979
    8080    UnitTest( "Delegate1", testObj.CheckFlags() )
    81 /*
     81
    8282    Dim dg7 = New Callback7( AddressOf(TestClass.Proc7) )
    83     UnitTest( "Delegate2", dg7() = "Proc7 result" )
    84 */
     83    UnitTest( "Delegate2", dg7( "test value" ) = "Proc7 result[test value]" )
     84
    8585End Sub
    8686
Note: See TracChangeset for help on using the changeset viewer.