From 15aa26cbdfd47b95b50d908037b5bf34663fb7b0 Mon Sep 17 00:00:00 2001 From: Trass3r Date: Tue, 29 Nov 2011 19:18:54 +0100 Subject: [PATCH] fix covariance of clone methods --- html.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html.d b/html.d index 308ac8b..3bee9e8 100644 --- a/html.d +++ b/html.d @@ -777,7 +777,7 @@ class CssAtRule : CssPart { string content; - override CssPart clone() const { + override CssAtRule clone() const { auto n = new CssAtRule(); n.content = content; return n; @@ -897,7 +897,7 @@ class CssRule : CssPart { // note: does not include the ending semicolon string content; - override CssPart clone() const { + override CssRule clone() const { auto n = new CssRule(); n.content = content; return n;