Nimble: Ambiguous use of 'postNotifications'

Created on 9 Jun 2020  ·  3Comments  ·  Source: Quick/Nimble

After updating to 8.1.0 from 8.0.7 postNotifications no longer compiles when used without explicitly specifying center parameter:

expect(expression: myAction).to(postNotifications(equal([myNotification]))) // Ambiguous use of 'postNotifications'
expect(expression: myAction).to(postNotifications(equal([myNotification]), from: .default)) // 👍

Though, the from: is still optional…

bug

Most helpful comment

Fixed by #793 and just released v8.1.1. Sorry for the inconvenience!

All 3 comments

Thanks for filing an issue. That's because of #789. When the second parameter is omitted we can't disambiguate the two overloads.

Fixed by #793 and just released v8.1.1. Sorry for the inconvenience!

@ikesyo That was super-quick! Thanks a bunch, all perfect again!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kdawgwilk picture kdawgwilk  ·  4Comments

darrarski picture darrarski  ·  4Comments

nikolaykasyanov picture nikolaykasyanov  ·  9Comments

ikesyo picture ikesyo  ·  3Comments

ikesyo picture ikesyo  ·  4Comments