(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / mbas / Test / errors / LogicalOperatorsC3.vb
blobf0991669fd9f7353d98c46da3d7adfb21dc71521
1 REM LineNo: 26
2 REM ExpectedError: BC30512
3 REM ErrorMessage: Option Strict On disallows implicit conversions from 'Integer' to 'Boolean'.
5 Option Strict On
6 Imports System
8 Module LogicalOperatorsC3
10 Sub Main()
11 Console.WriteLine(f())
12 End Sub
14 Function f1() As Integer
15 Console.WriteLine("Function f1() is called")
16 Return 1
17 End Function
19 Function f2() As Boolean
20 Console.WriteLine("Function f2() is called")
21 Return False
22 End Function
24 Function f() As Integer
25 Dim a1, a2 As Integer
26 a1 = f1() AndAlso f2()
27 Return 0
28 End Function
30 End Module