author Emilio Cobos Álvarez <>
Wed, 23 Jan 2019 14:48:42 +0000
changeset 515269 08c85a7f6bccaf072f95d06c82c4e9162a311cad
parent 510539 09c71a7cf75aeaf2963050e315276fb9a866fd62
child 528140 7048099916185816c362663855ae3a79cb183e6d
permissions -rw-r--r--
Bug 1521884 - Use proper case for maxLength attribute in datetimebox widget. r=Gijs In non-HTML documents, getAttribute is not case-insensitive. Differential Revision:

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

#include "mozilla/Range.h"
#include "mozilla/TypeTraits.h"

using mozilla::IsConvertible;
using mozilla::Range;

static_assert(IsConvertible<Range<int>, Range<const int>>::value,
              "Range should convert into const");
static_assert(!IsConvertible<Range<const int>, Range<int>>::value,
              "Range should not drop const in conversion");

// We need a proper program so we have someplace to hang the static_asserts.
int main() { return 0; }