Skip to content

Instantly share code, notes, and snippets.

@AnthonyDGreen
Created January 29, 2019 11:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save AnthonyDGreen/ce12ac986219eb51d6c85fa02c339a2f to your computer and use it in GitHub Desktop.
Class Base(Of T)
Protected x As T
End Class
Class Derived(Of T)
Inherits Base(Of T)
Public Sub F(y As Derived(Of String))
' Error: Derived(Of T) cannot access Derived(Of String)'s
' protected members
y.x = "a"
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment