Commit 4dd9ac97 authored by Kenton Varda's avatar Kenton Varda

Fix no-rtti.

parent 31ef7c2d
......@@ -208,8 +208,8 @@ TEST(Common, Downcast) {
#endif
#if KJ_NO_RTTI
EXPECT_TRUE(dynamicDowncastIfAvailable<Bar&>(foo) == nullptr);
EXPECT_TRUE(dynamicDowncastIfAvailable<Baz&>(foo) == nullptr);
EXPECT_TRUE(dynamicDowncastIfAvailable<Bar>(foo) == nullptr);
EXPECT_TRUE(dynamicDowncastIfAvailable<Baz>(foo) == nullptr);
#else
KJ_IF_MAYBE(m, dynamicDowncastIfAvailable<Bar>(foo)) {
EXPECT_EQ(&bar, m);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment