Version française
Home     About     Download     Resources     Contact us    
Browse thread
Pattern matching fallthrough with guards
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: taras <taras.judge@s...>
Subject: Pattern matching fallthrough with guards
Hi,
I noticed that one can coalesce multiple patterns like

function Some _
     | None -> 0

However when I add guards to this hypothetical example, I get a syntax error

function Some _ when 1 = 2
    |  None -> 0

I'm wondering if this inconsistency is considered to be a bug or not?

Taras