async: annoying warning for future.finished #4948

cheatfate opened this Issue Oct 24, 2016 · 0 comments


None yet

2 participants


Compilation of this code

import asyncdispatch

proc someProc(): Future[int] =
  var retFuture = newFuture[int]("someProc.future")
  return retFuture

var a = someProc()

echo a.finished


lib/pure/includes/asyncfutures.nim(202, 13) Hint: conversion from Future[] to itself is pointless [ConvFromXtoItselfNotNeeded]
@Araq Araq added Stdlib async labels Oct 26, 2016
@Araq Araq added a commit that closed this issue Jan 6, 2017
@Araq Araq fixes #4948 75b7756
@Araq Araq closed this in 75b7756 Jan 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment