home > 比較編 > F#, Scala, Haskell > はじめに >

ForNext

Only Do What Only You Can Do

016. branch type mismatch

VBScript

JScript

Perl

PHP

Python

Ruby

PowerShell

Scala

expression has type Any:
if (true) { "hello" } else { 3 }

F#

OCaml

compilation error:
if true then "hello" else 3;;

Haskell

compilation error:
if True then "hello" else 3

C

C++

C++Builder

VC++

C#

Java

Objective-C

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

inserted by FC2 system