Skip to content

Commit

Permalink
ci: temporarily ignore failing x as y examples for now
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Nov 27, 2020
1 parent 7cd9530 commit 5ba5a53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ if x is Abc {
```

If you have a struct field which should be checked, there is also a way to name an alias.
```v
```v ignore
struct MyStruct {x int}
struct MyStruct2 {y string}
type MySumType = MyStruct | MyStruct2
Expand Down Expand Up @@ -1707,7 +1707,7 @@ if w is Mars {
`w` has type `Mars` inside the body of the `if` statement. This is
known as *flow-sensitive typing*. You can also specify a variable name:

```v oksyntax
```v ignore
if w is Mars as mars {
assert typeof(w).name == 'World'
if mars.dust_storm() {
Expand Down Expand Up @@ -1752,7 +1752,7 @@ There are two ways to access the cast variant inside a match branch:
- the shadowed match variable
- using `as` to specify a variable name

```v
```v ignore
struct Moon {}
struct Mars {}
struct Venus {}
Expand Down

0 comments on commit 5ba5a53

Please sign in to comment.