Created
August 10, 2010 16:47
-
-
Save stevehorn/517576 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Class CrazyVBTypingTests | |
<Test()> | |
Public Sub Test_crazy_crap() | |
Dim anObject As New Object | |
anObject = New DoStuff | |
'This compiles, WTH? | |
Dim someInteger As Integer = anObject.GiveMeAnInteger() | |
someInteger.ShouldEqual(1) | |
End Sub | |
End Class | |
Public Class DoStuff | |
Public Function GiveMeAnInteger() As Integer | |
Return 1 | |
End Function | |
End Class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment