Skip to content

Commit 4f05d48

Browse files
chore: fix some warnings
1 parent ad1844b commit 4f05d48

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

next/sources/error_codes/0013_fixed/example_1.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ fn example_explicit_variable_types() -> Unit {
33
let a : Array[Int] = []
44
println(a.length())
55
let b : Int? = None
6-
println(b.is_empty())
6+
println(b is None)
77
}

next/sources/error_codes/0013_fixed/example_2.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ fn example_annotated_collections() -> Unit {
33
let a = ([] : Array[Int])
44
println(a.length())
55
let b = (None : Int?)
6-
println(b.is_empty())
6+
println(b is None)
77
}

next/sources/error_codes/0017_fixed/example_0.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///|
2-
test (ctx : @test.T) {
2+
test (ctx : @test.Test) {
33
let println = ctx.writeln(_)
44
// start example
55
let a : StringView = "asdf"

next/sources/error_codes/0017_fixed/example_1.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///|
2-
test (ctx : @test.T) {
2+
test (ctx : @test.Test) {
33
let println = ctx.writeln(_)
44
// start example
55
let a : StringView = "asdf"

next/sources/error_codes/0018_error/top.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///|
2-
test (ctx : @test.T) {
2+
test (ctx : @test.Test) {
33
let println = ctx.writeln(_)
44
// start example
55
let count = 2

next/sources/error_codes/0018_fixed/example_0.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///|
2-
test (ctx : @test.T) {
2+
test (ctx : @test.Test) {
33
let println = ctx.writeln(_)
44
// start example
55
let count = 2

next/sources/error_codes/0018_fixed/example_1.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///|
2-
test (ctx : @test.T) {
2+
test (ctx : @test.Test) {
33
let println = ctx.writeln(_)
44
// start example
55
let count = 2

next/sources/language/src/trait/top.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub impl MyShow for MyType with to_string(self) {
1717
...
1818
}
1919

20-
struct MyContainer[T] {}
20+
struct MyContainer[_] {}
2121

2222
// trait implementation with type parameters.
2323
// `[X : Show]` means the type parameter `X` must implement `Show`,

0 commit comments

Comments
 (0)