Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Fix fuzzy arrow warnings. #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
3 changes: 1 addition & 2 deletions lib/src/auto_observable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ abstract class AutoObservable implements ChangeNotifier {
///
/// For convenience this returns [newValue].
@override
/*=T*/ notifyPropertyChange/*<T>*/(
Symbol field, /*=T*/ oldValue, /*=T*/ newValue) {
T notifyPropertyChange<T>(Symbol field, T oldValue, T newValue) {
if (hasObservers && oldValue != newValue) {
notifyChange(new PropertyChangeRecord(this, field, oldValue, newValue));
}
Expand Down
1 change: 0 additions & 1 deletion lib/src/dirty_check.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ library observe.src.dirty_check;

import 'dart:async';

import 'package:func/func.dart';
import 'package:logging/logging.dart';
import 'package:observable/observable.dart' as obs show Observable;

Expand Down
2 changes: 1 addition & 1 deletion lib/src/path_observer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ class _ObservedSet {
if (obj is Observable) _observeStream(obj.changes);
}

void _observeStream(Stream stream) {
void _observeStream(Stream<List<ChangeRecord>> stream) {
// TODO(jmesserly): we hash on streams as we have two separate change
// streams for ObservableList. Not sure if that is the design we will use
// going forward.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: observe
version: 0.15.2
version: 0.15.2+1
author: Polymer.dart Authors <web-ui-dev@dartlang.org>
description: >
Observable properties and objects for use in template_binding.
Expand Down
3 changes: 1 addition & 2 deletions test/path_observer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,7 @@ class TestModel extends ChangeNotifier implements WatcherModel {
}

@override
/*=T*/ notifyPropertyChange/*<T>*/(
Symbol field, /*=T*/ oldValue, /*=T*/ newValue) {
T notifyPropertyChange<T>(Symbol field, T oldValue, T newValue) {
if (hasObservers && oldValue != newValue) {
notifyChange(new PropertyChangeRecord(this, field, oldValue, newValue));
}
Expand Down