Bug? Statement "is Label" returns true for Dim l_Button As Button

b4auser1

Well-Known Member
Licensed User
B4A 5.02

B4X:
    Dim l_Button As Button : l_Button.Initialize("")

    Log($"l_Button = ${l_Button Is Label}"$)
    Log($"l_Button = ${l_Button Is Button}"$)

    Dim l_View As View = l_Button

    Log($"l_View = ${l_View Is Label}"$)
    Log($"l_View = ${l_View Is Button}"$)
l_Button = true
l_Button = true
l_View = true
l_View = true
 
Top